Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001232/0.001232, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1941/0.1941, allocations: 46.1 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 79.86 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2825, allocations: 62.43 MB / 0.5316 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006635/0.2892, allocations: 5.784 MB / 0.5373 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004104/0.2933, allocations: 2.353 MB / 0.5396 GB, free: 7.074 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.2944, allocations: 41.78 kB / 0.5396 GB, free: 7.059 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007137/0.2951, allocations: 228.9 kB / 0.5398 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008601/0.2961, allocations: 182.6 kB / 0.54 GB, free: 6.695 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.2974, allocations: 473.7 kB / 0.5405 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.299, allocations: 1.127 MB / 0.5416 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009522/0.3, allocations: 0.6119 MB / 0.5422 GB, free: 5.223 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007179/0.3007, allocations: 374.1 kB / 0.5425 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004905/0.3012, allocations: 388.5 kB / 0.5429 GB, free: 4.715 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.3013, allocations: 98.72 kB / 0.543 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002945/0.3016, allocations: 160.4 kB / 0.5431 GB, free: 4.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.3018, allocations: 215.2 kB / 0.5433 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003972/0.3022, allocations: 467.2 kB / 0.5438 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.3035, allocations: 1.285 MB / 0.545 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.3035, allocations: 0.9062 kB / 0.545 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3035, allocations: 0 / 0.545 GB, free: 3.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.3035, allocations: 0 / 0.545 GB, free: 3.199 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.00151/0.305, allocations: 1.134 MB / 0.5462 GB, free: 2.285 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3051, allocations: 10.12 kB / 0.5462 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.3053, allocations: 110.8 kB / 0.5463 GB, free: 2.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009124/0.3063, allocations: 0.5994 MB / 0.5469 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.297e-05/0.3063, allocations: 66.59 kB / 0.5469 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3065, allocations: 90.78 kB / 0.547 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3078, allocations: 0.8884 MB / 0.5479 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/0.3079, allocations: 15.84 kB / 0.5479 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.237e-05/0.308, allocations: 40 kB / 0.5479 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.308, allocations: 20 kB / 0.5479 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009012/0.3089, allocations: 0.519 MB / 0.5485 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/0.312, allocations: 3.604 MB / 0.552 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004875/0.3125, allocations: 226.6 kB / 0.5522 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.3127, allocations: 104.8 kB / 0.5523 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001829/0.3129, allocations: 255.2 kB / 0.5525 GB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.3129, allocations: 34.56 kB / 0.5526 GB, free: 11.83 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.3129, allocations: 0 / 0.5526 GB, free: 11.83 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002154/0.3151, allocations: 1.293 MB / 0.5538 GB, free: 10.44 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.3151, allocations: 59.34 kB / 0.5539 GB, free: 10.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.3155, allocations: 405.8 kB / 0.5543 GB, free: 9.969 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.3155, allocations: 37.64 kB / 0.5543 GB, free: 9.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.3158, allocations: 462.1 kB / 0.5547 GB, free: 9.465 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.574e-05/0.3159, allocations: 142 kB / 0.5549 GB, free: 9.324 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.316, allocations: 98.16 kB / 0.555 GB, free: 9.223 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3161, allocations: 362.8 kB / 0.5553 GB, free: 8.859 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.3163, allocations: 113.1 kB / 0.5554 GB, free: 8.746 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.3166, allocations: 314 kB / 0.5557 GB, free: 8.355 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005119/0.3172, allocations: 455.6 kB / 0.5562 GB, free: 7.824 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.3172, allocations: 4 kB / 0.5562 GB, free: 7.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000734/0.3179, allocations: 0.5163 MB / 0.5567 GB, free: 7.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3179, allocations: 8 kB / 0.5567 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.318, allocations: 8 kB / 0.5567 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001745/0.3181, allocations: 37.59 kB / 0.5567 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003436/0.3185, allocations: 123.8 kB / 0.5568 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003496/0.3189, allocations: 0.564 MB / 0.5574 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.3191, allocations: 16 kB / 0.5574 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.09e-05/0.3191, allocations: 28 kB / 0.5574 GB, free: 6.484 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002599/0.3194, allocations: 229.6 kB / 0.5577 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.464e-05/0.3195, allocations: 51.34 kB / 0.5577 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005507/0.32, allocations: 331 kB / 0.558 GB, free: 5.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.32, allocations: 4 kB / 0.558 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.32, allocations: 0 / 0.558 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3201, allocations: 0 / 0.558 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001306/0.3214, allocations: 1.055 MB / 0.559 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.3214, allocations: 3.984 kB / 0.5591 GB, free: 4.727 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003357/0.3217, allocations: 79.91 kB / 0.5591 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/0.3219, allocations: 32.78 kB / 0.5592 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.954e-05/0.3219, allocations: 11.98 kB / 0.5592 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000297/0.3222, allocations: 0.5525 MB / 0.5597 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/0.3222, allocations: 4.031 kB / 0.5597 GB, free: 4.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006742/0.3229, allocations: 0.5527 MB / 0.5603 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.527e-05/0.323, allocations: 120.5 kB / 0.5604 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.389e-05/0.3231, allocations: 8 kB / 0.5604 GB, free: 3.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.3232, allocations: 8 kB / 0.5604 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.007e-05/0.3233, allocations: 31.94 kB / 0.5604 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3233, allocations: 12 kB / 0.5604 GB, free: 3.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002515/0.3236, allocations: 271.1 kB / 0.5607 GB, free: 2.969 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3236, allocations: 0 / 0.5607 GB, free: 2.969 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005252/0.3241, allocations: 132 kB / 0.5608 GB, free: 2.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001573/0.3243, allocations: 123.3 kB / 0.5609 GB, free: 2.707 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006176/0.3249, allocations: 336.1 kB / 0.5612 GB, free: 2.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3249, allocations: 3.938 kB / 0.5613 GB, free: 2.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.3251, allocations: 141.2 kB / 0.5614 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3256, allocations: 90.53 kB / 0.5615 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.328, allocations: 1.649 MB / 0.5631 GB, free: 464 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.3285, allocations: 0.96 MB / 0.564 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.979e-05/0.3286, allocations: 47.42 kB / 0.5641 GB, free: 15.42 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3286, allocations: 0 / 0.5641 GB, free: 15.42 MB / 430.1 MB Notification: Performance of Templates: time 0.01386/0.3425, allocations: 11.23 MB / 0.575 GB, free: 4.195 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches