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.001167/0.001167, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.001068/0.001068, allocations: 191 kB / 19.34 MB, free: 3.766 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.454/1.454, allocations: 222.9 MB / 243 MB, free: 15.05 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.231/0.231, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 68.17 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1377, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007019/0.1447, allocations: 5.754 MB / 476.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003899/0.1487, allocations: 2.298 MB / 478.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005313/0.1492, allocations: 39.75 kB / 478.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005027/0.1497, allocations: 230 kB / 479 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003836/0.1502, allocations: 178.3 kB / 479.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.1512, allocations: 459 kB / 479.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.1523, allocations: 1.118 MB / 480.8 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008248/0.1532, allocations: 0.6107 MB / 481.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004582/0.1537, allocations: 362.7 kB / 481.7 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004134/0.1541, allocations: 386.1 kB / 482.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.1542, allocations: 100 kB / 482.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.1544, allocations: 155.9 kB / 482.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.1546, allocations: 215.3 kB / 482.6 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003819/0.155, allocations: 477.5 kB / 483 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.1561, allocations: 1.257 MB / 484.3 MB, free: 4 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1562, allocations: 0 / 484.3 MB, free: 4 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1562, allocations: 0 / 484.3 MB, free: 4 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.1562, allocations: 0 / 484.3 MB, free: 4 kB / 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.001555/0.1577, allocations: 1.134 MB / 485.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.1578, allocations: 8.031 kB / 485.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.158, allocations: 107.7 kB / 485.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009366/0.1589, allocations: 0.5904 MB / 486.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.169e-05/0.159, allocations: 66 kB / 486.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.1591, allocations: 95.91 kB / 486.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.1607, allocations: 0.8892 MB / 487.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.1607, allocations: 7.906 kB / 487.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-05/0.1608, allocations: 40 kB / 487.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/0.1608, allocations: 20 kB / 487.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.1618, allocations: 0.5346 MB / 487.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003826/0.1657, allocations: 3.596 MB / 491.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005835/0.1663, allocations: 224.5 kB / 491.6 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001824/0.1665, allocations: 104.8 kB / 491.7 MB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000233/0.1667, allocations: 251.3 kB / 491.9 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1668, allocations: 38.56 kB / 492 MB, free: 7.926 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.174e-06/0.1668, allocations: 3.938 kB / 492 MB, free: 7.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002512/0.1693, allocations: 1.284 MB / 493.3 MB, free: 6.539 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.1694, allocations: 63.34 kB / 493.3 MB, free: 6.465 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004311/0.1698, allocations: 401.8 kB / 493.7 MB, free: 6.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.1698, allocations: 29.7 kB / 493.7 MB, free: 6.035 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.1701, allocations: 462.1 kB / 494.2 MB, free: 5.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.1702, allocations: 142 kB / 494.3 MB, free: 5.434 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.1704, allocations: 102.2 kB / 494.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1705, allocations: 354.8 kB / 494.8 MB, free: 4.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.1707, allocations: 125 kB / 494.9 MB, free: 4.848 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003311/0.1711, allocations: 302.3 kB / 495.2 MB, free: 4.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/0.1716, allocations: 464.6 kB / 495.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1716, allocations: 0 / 495.6 MB, free: 3.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007925/0.1724, allocations: 0.5165 MB / 496.2 MB, free: 3.402 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.1725, allocations: 8 kB / 496.2 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1725, allocations: 4 kB / 496.2 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002231/0.1727, allocations: 36.84 kB / 496.2 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.1731, allocations: 120.4 kB / 496.3 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004116/0.1735, allocations: 0.5678 MB / 496.9 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.1738, allocations: 20 kB / 496.9 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.1738, allocations: 24 kB / 496.9 MB, free: 2.598 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.000318/0.1741, allocations: 233.6 kB / 497.2 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.255e-05/0.1742, allocations: 51.38 kB / 497.2 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006056/0.1748, allocations: 331.3 kB / 497.5 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1749, allocations: 4 kB / 497.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1749, allocations: 0 / 497.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.1749, allocations: 0 / 497.5 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001413/0.1763, allocations: 1.051 MB / 498.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1763, allocations: 3.938 kB / 498.6 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.1767, allocations: 75.95 kB / 498.7 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.1768, allocations: 40.72 kB / 498.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.1768, allocations: 11.98 kB / 498.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003129/0.1772, allocations: 0.5486 MB / 499.3 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.1772, allocations: 3.984 kB / 499.3 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007808/0.178, allocations: 0.5602 MB / 499.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1781, allocations: 120.5 kB / 500 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.1781, allocations: 15.98 kB / 500 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.1783, allocations: 8 kB / 500 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.1784, allocations: 31.94 kB / 0.4883 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.1784, allocations: 8 kB / 0.4883 GB, free: 15.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002875/0.1787, allocations: 275.1 kB / 0.4886 GB, free: 15.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1787, allocations: 0 / 0.4886 GB, free: 15.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005607/0.1793, allocations: 128 kB / 0.4887 GB, free: 14.94 MB / 382.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.0001853/0.1794, allocations: 127 kB / 0.4888 GB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006524/0.1801, allocations: 324.5 kB / 0.4891 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1801, allocations: 0 / 0.4891 GB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002631/0.1804, allocations: 139.8 kB / 0.4892 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005312/0.1809, allocations: 85.45 kB / 0.4893 GB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.1835, allocations: 1.612 MB / 0.4909 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.1841, allocations: 0.96 MB / 0.4918 GB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.1843, allocations: 56.53 kB / 0.4919 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.042e-05/0.1844, allocations: 43.42 kB / 0.4919 GB, free: 11.52 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1844, allocations: 0 / 0.4919 GB, free: 11.52 MB / 382.1 MB Notification: Performance of Templates: time 0.009826/0.1943, allocations: 4.135 MB / 0.496 GB, free: 7.414 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 -s cvode -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/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_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches