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.001186/0.001186, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2367/0.2367, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002508/0.002508, allocations: 71.89 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.428/0.4306, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007285/0.4379, allocations: 5.773 MB / 0.5366 GB, free: 9.039 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005008/0.4429, allocations: 2.357 MB / 0.5389 GB, free: 7.105 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.4441, allocations: 41.16 kB / 0.5389 GB, free: 7.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005619/0.4447, allocations: 226.4 kB / 0.5392 GB, free: 6.891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004968/0.4452, allocations: 182 kB / 0.5393 GB, free: 6.73 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.4465, allocations: 478 kB / 0.5398 GB, free: 6.336 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00117/0.4476, allocations: 1.121 MB / 0.5409 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008668/0.4485, allocations: 0.6136 MB / 0.5415 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004932/0.449, allocations: 377.3 kB / 0.5418 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004275/0.4495, allocations: 388.8 kB / 0.5422 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001293/0.4496, allocations: 94.91 kB / 0.5423 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003019/0.4499, allocations: 164.5 kB / 0.5425 GB, free: 4.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001944/0.4501, allocations: 215.9 kB / 0.5427 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004021/0.4505, allocations: 470.8 kB / 0.5431 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001413/0.4519, allocations: 1.277 MB / 0.5444 GB, free: 3.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.452, allocations: 0 / 0.5444 GB, free: 3.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.452, allocations: 0 / 0.5444 GB, free: 3.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.452, allocations: 1.438 kB / 0.5444 GB, free: 3.234 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.001715/0.4537, allocations: 1.137 MB / 0.5455 GB, free: 2.316 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4538, allocations: 8.688 kB / 0.5455 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.4541, allocations: 111.4 kB / 0.5456 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009769/0.4551, allocations: 0.6005 MB / 0.5462 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.606e-05/0.4551, allocations: 69.09 kB / 0.5462 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.4553, allocations: 87.25 kB / 0.5463 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.4569, allocations: 0.8945 MB / 0.5472 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.486e-05/0.457, allocations: 7.906 kB / 0.5472 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.33e-05/0.457, allocations: 36 kB / 0.5472 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.523e-05/0.4571, allocations: 24 kB / 0.5473 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/0.458, allocations: 0.5229 MB / 0.5478 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003931/0.462, allocations: 3.604 MB / 0.5513 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005538/0.4625, allocations: 226 kB / 0.5515 GB, free: 12.31 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.4628, allocations: 112.7 kB / 0.5516 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003888/0.4631, allocations: 243.3 kB / 0.5519 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/0.4632, allocations: 42.56 kB / 0.5519 GB, free: 11.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 3.286e-06/0.4632, allocations: 0 / 0.5519 GB, free: 11.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002722/0.4659, allocations: 1.3 MB / 0.5532 GB, free: 10.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.466, allocations: 59.34 kB / 0.5532 GB, free: 10.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004397/0.4665, allocations: 405.8 kB / 0.5536 GB, free: 9.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.4665, allocations: 29.7 kB / 0.5536 GB, free: 9.953 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.4668, allocations: 466.1 kB / 0.5541 GB, free: 9.488 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.4669, allocations: 142 kB / 0.5542 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.4671, allocations: 98.16 kB / 0.5543 GB, free: 9.246 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4672, allocations: 358.8 kB / 0.5547 GB, free: 8.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.4674, allocations: 117.1 kB / 0.5548 GB, free: 8.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00033/0.4678, allocations: 310 kB / 0.5551 GB, free: 8.383 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006145/0.4684, allocations: 463.6 kB / 0.5555 GB, free: 7.844 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4684, allocations: 0 / 0.5555 GB, free: 7.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008227/0.4693, allocations: 0.5126 MB / 0.556 GB, free: 7.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.4693, allocations: 8 kB / 0.556 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.4693, allocations: 4 kB / 0.556 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/0.4695, allocations: 37.5 kB / 0.556 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003935/0.4699, allocations: 131.8 kB / 0.5562 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004675/0.4704, allocations: 0.5601 MB / 0.5567 GB, free: 6.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.4706, allocations: 20 kB / 0.5567 GB, free: 6.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.4707, allocations: 24 kB / 0.5568 GB, free: 6.512 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.0003972/0.4711, allocations: 225.6 kB / 0.557 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.363e-05/0.4712, allocations: 55.28 kB / 0.557 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006638/0.4719, allocations: 331 kB / 0.5573 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.4719, allocations: 4 kB / 0.5574 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4719, allocations: 0 / 0.5574 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4719, allocations: 0 / 0.5574 GB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001467/0.4734, allocations: 1.055 MB / 0.5584 GB, free: 4.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4734, allocations: 4 kB / 0.5584 GB, free: 4.754 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.4737, allocations: 75.91 kB / 0.5585 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001383/0.4739, allocations: 40.72 kB / 0.5585 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.4739, allocations: 15.98 kB / 0.5585 GB, free: 4.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003418/0.4743, allocations: 0.5486 MB / 0.559 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4743, allocations: 0 / 0.559 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007911/0.4751, allocations: 0.5566 MB / 0.5596 GB, free: 3.449 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.866e-05/0.4752, allocations: 116.5 kB / 0.5597 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.4752, allocations: 8 kB / 0.5597 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.4754, allocations: 8.094 kB / 0.5597 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.4755, allocations: 35.89 kB / 0.5598 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.4755, allocations: 12 kB / 0.5598 GB, free: 3.254 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003017/0.4758, allocations: 279.1 kB / 0.56 GB, free: 2.984 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4758, allocations: 0 / 0.56 GB, free: 2.984 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005552/0.4764, allocations: 124 kB / 0.5601 GB, free: 2.863 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.0001963/0.4766, allocations: 119.2 kB / 0.5603 GB, free: 2.734 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006654/0.4773, allocations: 344.3 kB / 0.5606 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4773, allocations: 0 / 0.5606 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002723/0.4775, allocations: 141.2 kB / 0.5607 GB, free: 2.262 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.4781, allocations: 79.83 kB / 0.5608 GB, free: 2.188 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.4808, allocations: 1.615 MB / 0.5624 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005896/0.4814, allocations: 0.96 MB / 0.5633 GB, free: 15.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001933/0.4816, allocations: 56.53 kB / 0.5634 GB, free: 15.49 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.737e-05/0.4817, allocations: 47.42 kB / 0.5634 GB, free: 15.44 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4817, allocations: 0 / 0.5634 GB, free: 15.44 MB / 430.1 MB Notification: Performance of Templates: time 0.0101/0.4918, allocations: 4.242 MB / 0.5676 GB, free: 11.23 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches