Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 112.8 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 184.8 kB / 18.7 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2205/0.2205, allocations: 44.19 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.88 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.41/0.4113, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007204/0.4185, allocations: 5.763 MB / 0.5245 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004742/0.4233, allocations: 2.287 MB / 0.5267 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007116/0.424, allocations: 41.75 kB / 0.5268 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005708/0.4246, allocations: 227.5 kB / 0.527 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.4251, allocations: 183.5 kB / 0.5272 GB, free: 13.51 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001145/0.4263, allocations: 465.2 kB / 0.5276 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.4275, allocations: 1.113 MB / 0.5287 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008503/0.4284, allocations: 0.6155 MB / 0.5293 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004393/0.4288, allocations: 370.8 kB / 0.5297 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004108/0.4292, allocations: 388.6 kB / 0.53 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.4294, allocations: 96.09 kB / 0.5301 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003005/0.4297, allocations: 157.2 kB / 0.5303 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002039/0.4299, allocations: 215.3 kB / 0.5305 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000463/0.4304, allocations: 474.3 kB / 0.5309 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.4316, allocations: 1.268 MB / 0.5322 GB, free: 10.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4317, allocations: 3.984 kB / 0.5322 GB, free: 10.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4317, allocations: 0 / 0.5322 GB, free: 10.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.4317, allocations: 0 / 0.5322 GB, free: 10.23 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.001619/0.4333, allocations: 1.13 MB / 0.5333 GB, free: 9.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.4334, allocations: 10.16 kB / 0.5333 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.4335, allocations: 101.1 kB / 0.5334 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000836/0.4344, allocations: 0.5899 MB / 0.534 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.875e-05/0.4344, allocations: 66.72 kB / 0.534 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001321/0.4346, allocations: 99.3 kB / 0.5341 GB, free: 8.691 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.436, allocations: 0.8852 MB / 0.535 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/0.4361, allocations: 10.02 kB / 0.535 GB, free: 8.082 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.4362, allocations: 37.16 kB / 0.535 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.937e-05/0.4362, allocations: 23.19 kB / 0.535 GB, free: 8.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.4372, allocations: 0.5247 MB / 0.5356 GB, free: 7.801 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004034/0.4413, allocations: 3.608 MB / 0.5391 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000615/0.4419, allocations: 224.4 kB / 0.5393 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.4421, allocations: 95.55 kB / 0.5394 GB, free: 4.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002684/0.4424, allocations: 250.9 kB / 0.5396 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.4424, allocations: 39.67 kB / 0.5397 GB, free: 4.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.034e-06/0.4424, allocations: 0 / 0.5397 GB, free: 4.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002577/0.445, allocations: 1.29 MB / 0.5409 GB, free: 3.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.4451, allocations: 63.31 kB / 0.541 GB, free: 3.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005083/0.4456, allocations: 399.9 kB / 0.5414 GB, free: 2.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.4456, allocations: 30.77 kB / 0.5414 GB, free: 2.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.4459, allocations: 472.4 kB / 0.5418 GB, free: 2.398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.371e-05/0.446, allocations: 130.2 kB / 0.542 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.4462, allocations: 96.97 kB / 0.5421 GB, free: 2.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4463, allocations: 365.2 kB / 0.5424 GB, free: 1.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.4466, allocations: 109.8 kB / 0.5425 GB, free: 1.816 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004519/0.447, allocations: 316.4 kB / 0.5428 GB, free: 1.504 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.4477, allocations: 458.5 kB / 0.5433 GB, free: 1.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.4477, allocations: 6 kB / 0.5433 GB, free: 1.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001011/0.4487, allocations: 0.5073 MB / 0.5438 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.518e-05/0.4488, allocations: 8.188 kB / 0.5438 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.4488, allocations: 6.719 kB / 0.5438 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.449, allocations: 39.58 kB / 0.5438 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004474/0.4495, allocations: 129.3 kB / 0.5439 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005255/0.45, allocations: 0.5674 MB / 0.5445 GB, free: 244 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.4503, allocations: 17.75 kB / 0.5445 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/0.4503, allocations: 25.09 kB / 0.5445 GB, free: 232 kB / 398.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.0003793/0.4507, allocations: 228.4 kB / 0.5447 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.644e-05/0.4508, allocations: 49.94 kB / 0.5448 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000763/0.4516, allocations: 347.1 kB / 0.5451 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.4516, allocations: 4.125 kB / 0.5451 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.4516, allocations: 0 / 0.5451 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.4516, allocations: 1.188 kB / 0.5451 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.4537, allocations: 1.054 MB / 0.5462 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.4537, allocations: 5.188 kB / 0.5462 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003638/0.454, allocations: 78.84 kB / 0.5462 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.4542, allocations: 37.86 kB / 0.5463 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.582e-05/0.4542, allocations: 7.719 kB / 0.5463 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003723/0.4546, allocations: 0.5574 MB / 0.5468 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.4546, allocations: 5.469 kB / 0.5468 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009107/0.4556, allocations: 0.5504 MB / 0.5474 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.4557, allocations: 116.5 kB / 0.5475 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.36e-05/0.4557, allocations: 8 kB / 0.5475 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001541/0.4559, allocations: 8 kB / 0.5475 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.157e-05/0.456, allocations: 27.91 kB / 0.5475 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.456, allocations: 15.98 kB / 0.5475 GB, free: 13.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000307/0.4563, allocations: 263.2 kB / 0.5478 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4563, allocations: 4 kB / 0.5478 GB, free: 13.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006345/0.457, allocations: 128 kB / 0.5479 GB, free: 13.36 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.0002567/0.4572, allocations: 119.2 kB / 0.548 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000682/0.4579, allocations: 332.5 kB / 0.5483 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.4579, allocations: 4 kB / 0.5483 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.4582, allocations: 135.8 kB / 0.5485 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005836/0.4588, allocations: 74.81 kB / 0.5485 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.4618, allocations: 1.62 MB / 0.5501 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/0.4625, allocations: 0.9561 MB / 0.5511 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000204/0.4627, allocations: 64.47 kB / 0.5511 GB, free: 9.984 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.441e-05/0.4628, allocations: 47.42 kB / 0.5512 GB, free: 9.938 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4628, allocations: 0 / 0.5512 GB, free: 9.938 MB / 414.1 MB Notification: Performance of Templates: time 0.01042/0.4732, allocations: 4.246 MB / 0.5553 GB, free: 5.719 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches