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.001137/0.001137, allocations: 107.7 kB / 17.21 MB, free: 6.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.001229/0.001229, allocations: 194 kB / 18.12 MB, free: 5.363 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.531/1.531, allocations: 222.9 MB / 241.8 MB, free: 15.53 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.2214/0.2214, allocations: 44.18 MB / 336.1 MB, free: 3.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 65.3 kB / 407.7 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1212, allocations: 60.83 MB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007063/0.1283, allocations: 5.735 MB / 474.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00379/0.1321, allocations: 2.255 MB / 476.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005202/0.1326, allocations: 35.81 kB / 476.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004751/0.1331, allocations: 178.6 kB / 476.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.1335, allocations: 146.8 kB / 476.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.1346, allocations: 399.4 kB / 477.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.1361, allocations: 1.048 MB / 478.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.1371, allocations: 0.5478 MB / 478.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00066/0.1378, allocations: 318.7 kB / 479.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004567/0.1382, allocations: 370 kB / 479.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.219e-05/0.1383, allocations: 52 kB / 479.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.1386, allocations: 112 kB / 479.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.1389, allocations: 175.3 kB / 479.8 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004136/0.1393, allocations: 437.5 kB / 480.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001117/0.1404, allocations: 1.156 MB / 481.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.1404, allocations: 3.984 kB / 481.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1404, allocations: 0 / 481.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1405, allocations: 0 / 481.4 MB, free: 1.871 MB / 350.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.001557/0.142, allocations: 1.134 MB / 482.6 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.1421, allocations: 8.031 kB / 482.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.1422, allocations: 103.7 kB / 482.7 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000746/0.143, allocations: 0.5632 MB / 483.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.143, allocations: 66 kB / 483.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.1432, allocations: 95.91 kB / 483.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.1446, allocations: 0.8892 MB / 484.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.1447, allocations: 15.83 kB / 484.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.455e-05/0.1447, allocations: 36 kB / 484.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.1448, allocations: 24 kB / 484.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009959/0.1458, allocations: 0.5229 MB / 484.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003693/0.1495, allocations: 3.643 MB / 488.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.15, allocations: 222.7 kB / 488.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.1502, allocations: 100.8 kB / 488.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/0.1505, allocations: 251.2 kB / 489.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.1505, allocations: 34.56 kB / 489.1 MB, free: 9.789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.1505, allocations: 4 kB / 489.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002267/0.1528, allocations: 1.285 MB / 490.4 MB, free: 8.406 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.1528, allocations: 59.34 kB / 490.5 MB, free: 8.336 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003929/0.1532, allocations: 405.8 kB / 490.9 MB, free: 7.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.1533, allocations: 33.7 kB / 490.9 MB, free: 7.895 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.1536, allocations: 466.1 kB / 491.4 MB, free: 7.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1537, allocations: 138 kB / 491.5 MB, free: 7.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.1538, allocations: 98.16 kB / 491.6 MB, free: 7.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.154, allocations: 362.8 kB / 491.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.1542, allocations: 113.1 kB / 492 MB, free: 6.715 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.1545, allocations: 306.2 kB / 492.3 MB, free: 6.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005769/0.1551, allocations: 468.6 kB / 492.8 MB, free: 5.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1551, allocations: 0 / 492.8 MB, free: 5.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007644/0.1559, allocations: 0.513 MB / 493.3 MB, free: 5.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.1559, allocations: 8 kB / 493.3 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1559, allocations: 4 kB / 493.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001843/0.1561, allocations: 40.83 kB / 493.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/0.1565, allocations: 123.8 kB / 493.5 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003925/0.1569, allocations: 0.5682 MB / 494.1 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.1571, allocations: 19.98 kB / 494.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.1572, allocations: 24 kB / 494.1 MB, free: 4.453 MB / 366.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.0002828/0.1575, allocations: 225.6 kB / 494.3 MB, free: 4.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.957e-05/0.1575, allocations: 51.38 kB / 494.4 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006242/0.1582, allocations: 331.3 kB / 494.7 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1582, allocations: 4 kB / 494.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1582, allocations: 0 / 494.7 MB, free: 3.832 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1582, allocations: 3.984 kB / 494.7 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.1596, allocations: 1.05 MB / 495.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1596, allocations: 0 / 495.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.16, allocations: 83.89 kB / 495.8 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001145/0.1601, allocations: 32.83 kB / 495.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.1602, allocations: 11.98 kB / 495.9 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003423/0.1605, allocations: 0.5563 MB / 496.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1605, allocations: 4.031 kB / 496.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/0.1613, allocations: 0.563 MB / 497 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.1614, allocations: 116.5 kB / 497.1 MB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.96e-05/0.1614, allocations: 8 kB / 497.1 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.1616, allocations: 11.98 kB / 497.1 MB, free: 1.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.1617, allocations: 31.94 kB / 497.2 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.1617, allocations: 16 kB / 497.2 MB, free: 1.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.162, allocations: 271.1 kB / 497.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.162, allocations: 0 / 497.4 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005066/0.1625, allocations: 128 kB / 497.6 MB, free: 0.8047 MB / 366.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.0001794/0.1627, allocations: 117.2 kB / 497.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006002/0.1633, allocations: 324.5 kB / 498 MB, free: 376 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1633, allocations: 0 / 498 MB, free: 376 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002659/0.1636, allocations: 141.1 kB / 498.1 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.1641, allocations: 85.38 kB / 498.2 MB, free: 152 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002704/0.1668, allocations: 2.002 MB / 0.4885 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.1673, allocations: 0.9639 MB / 0.4894 GB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000179/0.1675, allocations: 56.53 kB / 0.4895 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/0.1676, allocations: 43.42 kB / 0.4895 GB, free: 13.01 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1676, allocations: 0 / 0.4895 GB, free: 13.01 MB / 382.1 MB Notification: Performance of Templates: time 0.009188/0.1768, allocations: 3.955 MB / 0.4934 GB, free: 9.078 MB / 382.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