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.001235/0.001235, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001251/0.001251, allocations: 191 kB / 19.34 MB, free: 3.641 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.36/1.36, allocations: 222.9 MB / 243 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.2075/0.2075, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.44 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1282, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007228/0.1355, allocations: 5.747 MB / 476.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004283/0.1398, allocations: 2.298 MB / 478.8 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007109/0.1406, allocations: 39.75 kB / 478.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005056/0.1411, allocations: 230 kB / 479 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004041/0.1415, allocations: 182.3 kB / 479.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.1426, allocations: 451 kB / 479.6 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.1436, allocations: 1.118 MB / 480.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007696/0.1444, allocations: 0.6185 MB / 481.4 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003872/0.1448, allocations: 358.7 kB / 481.7 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00038/0.1452, allocations: 394 kB / 482.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1453, allocations: 96 kB / 482.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.1455, allocations: 148 kB / 482.3 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.1457, allocations: 215.3 kB / 482.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003596/0.1461, allocations: 477.5 kB / 483 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.1471, allocations: 1.253 MB / 484.3 MB, free: 20 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1472, allocations: 0 / 484.3 MB, free: 20 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1472, allocations: 4 kB / 484.3 MB, free: 16 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1472, allocations: 0 / 484.3 MB, free: 16 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.00135/0.1485, allocations: 1.134 MB / 485.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.711e-05/0.1486, allocations: 12.03 kB / 485.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.1487, allocations: 99.72 kB / 485.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000872/0.1496, allocations: 0.5943 MB / 486.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.077e-05/0.1496, allocations: 70 kB / 486.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.1498, allocations: 95.91 kB / 486.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.1511, allocations: 0.8853 MB / 487.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.1511, allocations: 11.91 kB / 487.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-05/0.1512, allocations: 36 kB / 487.2 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.1512, allocations: 24 kB / 487.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009334/0.1521, allocations: 0.5229 MB / 487.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003322/0.1555, allocations: 3.596 MB / 491.4 MB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005202/0.156, allocations: 228.5 kB / 491.6 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.1562, allocations: 104.8 kB / 491.7 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001965/0.1564, allocations: 251.2 kB / 491.9 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1564, allocations: 38.56 kB / 492 MB, free: 7.941 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.333e-06/0.1564, allocations: 0 / 492 MB, free: 7.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.00222/0.1587, allocations: 1.292 MB / 493.3 MB, free: 6.551 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.1587, allocations: 63.28 kB / 493.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.1591, allocations: 401.8 kB / 493.7 MB, free: 6.082 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.1591, allocations: 37.7 kB / 493.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002898/0.1594, allocations: 458.1 kB / 494.2 MB, free: 5.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.066e-05/0.1595, allocations: 142 kB / 494.3 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1597, allocations: 106.1 kB / 494.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1598, allocations: 362.8 kB / 494.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.16, allocations: 109.1 kB / 494.9 MB, free: 4.859 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.1603, allocations: 302.3 kB / 495.2 MB, free: 4.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005349/0.1609, allocations: 460.7 kB / 495.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.1609, allocations: 3.984 kB / 495.6 MB, free: 3.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000747/0.1617, allocations: 0.5084 MB / 496.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1617, allocations: 8.844 kB / 496.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.1617, allocations: 7.984 kB / 496.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.1619, allocations: 44.84 kB / 496.2 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003632/0.1623, allocations: 123.8 kB / 496.3 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003781/0.1627, allocations: 0.5639 MB / 496.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.1629, allocations: 16 kB / 496.9 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.214e-05/0.1629, allocations: 24 kB / 496.9 MB, free: 2.609 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.00031/0.1632, allocations: 237.6 kB / 497.2 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.1633, allocations: 51.38 kB / 497.2 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005896/0.1639, allocations: 323.2 kB / 497.5 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.1639, allocations: 4 kB / 497.5 MB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1639, allocations: 3.938 kB / 497.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1639, allocations: 3.984 kB / 497.5 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.1653, allocations: 1.051 MB / 498.6 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1653, allocations: 4 kB / 498.6 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003497/0.1657, allocations: 75.89 kB / 498.7 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.1658, allocations: 44.94 kB / 498.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.1659, allocations: 8 kB / 498.7 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000315/0.1662, allocations: 0.5445 MB / 499.3 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1662, allocations: 0 / 499.3 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.1669, allocations: 0.5638 MB / 499.8 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.88e-05/0.167, allocations: 112.5 kB / 499.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.634e-05/0.1671, allocations: 12.09 kB / 500 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1672, allocations: 19.86 kB / 500 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.568e-05/0.1673, allocations: 27.91 kB / 0.4883 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/0.1673, allocations: 12 kB / 0.4883 GB, free: 15.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002674/0.1676, allocations: 271.1 kB / 0.4886 GB, free: 15.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1676, allocations: 4 kB / 0.4886 GB, free: 15.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005611/0.1682, allocations: 124 kB / 0.4887 GB, free: 14.96 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.0001621/0.1684, allocations: 119.1 kB / 0.4888 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006049/0.169, allocations: 329.1 kB / 0.4891 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.169, allocations: 3.938 kB / 0.4891 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.1692, allocations: 144.2 kB / 0.4892 GB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.1697, allocations: 85.06 kB / 0.4893 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.1721, allocations: 1.615 MB / 0.4909 GB, free: 12.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/0.1726, allocations: 0.9561 MB / 0.4918 GB, free: 11.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.1728, allocations: 60.53 kB / 0.4919 GB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.215e-05/0.1729, allocations: 43.42 kB / 0.4919 GB, free: 11.54 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1729, allocations: 0 / 0.4919 GB, free: 11.54 MB / 382.1 MB Notification: Performance of Templates: time 0.009078/0.182, allocations: 4.136 MB / 0.496 GB, free: 7.426 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 gbode -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