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.0007941/0.0007942, allocations: 93.42 kB / 17.35 MB, free: 6.344 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.0008578/0.0008578, allocations: 171.3 kB / 18.25 MB, free: 5.504 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.448/1.448, allocations: 223.3 MB / 242.3 MB, free: 14.48 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.212/0.212, allocations: 44.25 MB / 337.7 MB, free: 2.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003862/0.0003864, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1218, allocations: 61.92 MB / 472.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006699/0.1286, allocations: 5.264 MB / 477.5 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004416/0.133, allocations: 2.22 MB / 479.7 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001293/0.1343, allocations: 35.75 kB / 479.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006988/0.1351, allocations: 174.7 kB / 479.9 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008567/0.1359, allocations: 158.7 kB / 480.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.1373, allocations: 391.4 kB / 480.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001607/0.1389, allocations: 1.032 MB / 481.5 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009932/0.1399, allocations: 0.5595 MB / 482.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005198/0.1404, allocations: 262.6 kB / 482.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005084/0.141, allocations: 306.1 kB / 482.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.1411, allocations: 32 kB / 482.7 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003276/0.1414, allocations: 91.91 kB / 482.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.1416, allocations: 135.4 kB / 482.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004691/0.1421, allocations: 411.4 kB / 483.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.1432, allocations: 1.129 MB / 484.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1432, allocations: 0 / 484.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1433, allocations: 0 / 484.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.273e-05/0.1433, allocations: 4 kB / 484.4 MB, free: 1.109 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.001639/0.145, allocations: 0.9613 MB / 485.4 MB, free: 100 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.145, allocations: 12.02 kB / 485.4 MB, free: 88 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.1452, allocations: 99.89 kB / 485.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008706/0.1461, allocations: 0.567 MB / 486 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.1462, allocations: 69.98 kB / 486.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.1463, allocations: 95.91 kB / 486.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.1481, allocations: 0.8853 MB / 487.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.271e-05/0.1481, allocations: 7.906 kB / 487.1 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.022e-05/0.1482, allocations: 36 kB / 487.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.341e-05/0.1482, allocations: 28 kB / 487.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.1494, allocations: 0.5268 MB / 487.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004168/0.1536, allocations: 3.662 MB / 491.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005841/0.1542, allocations: 222.7 kB / 491.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.1544, allocations: 100.8 kB / 491.7 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002782/0.1547, allocations: 255.3 kB / 491.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.1547, allocations: 34.56 kB / 492 MB, free: 9.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.344e-06/0.1547, allocations: 0 / 492 MB, free: 9.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002633/0.1574, allocations: 1.307 MB / 493.3 MB, free: 7.766 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.1574, allocations: 55.34 kB / 493.3 MB, free: 7.699 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004708/0.1579, allocations: 405.8 kB / 493.7 MB, free: 7.297 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.1579, allocations: 29.7 kB / 493.7 MB, free: 7.262 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003285/0.1583, allocations: 470.1 kB / 494.2 MB, free: 6.793 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1584, allocations: 134 kB / 494.3 MB, free: 6.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.38e-05/0.1585, allocations: 53.69 kB / 494.4 MB, free: 6.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1586, allocations: 362.8 kB / 494.7 MB, free: 6.238 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.1589, allocations: 109.1 kB / 494.8 MB, free: 6.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.1592, allocations: 310.2 kB / 495.1 MB, free: 5.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006571/0.1599, allocations: 468.7 kB / 495.6 MB, free: 5.199 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1599, allocations: 0 / 495.6 MB, free: 5.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009698/0.1609, allocations: 0.517 MB / 496.1 MB, free: 4.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.1609, allocations: 4 kB / 496.1 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.161, allocations: 8 kB / 496.1 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002381/0.1612, allocations: 40.84 kB / 496.2 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003986/0.1616, allocations: 131.8 kB / 496.3 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004353/0.1621, allocations: 0.5603 MB / 496.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.1623, allocations: 20.06 kB / 496.9 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.641e-05/0.1624, allocations: 24 kB / 496.9 MB, free: 3.859 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.0003597/0.1627, allocations: 229.6 kB / 497.1 MB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.1628, allocations: 47.38 kB / 497.2 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006779/0.1635, allocations: 339.2 kB / 497.5 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1635, allocations: 4 kB / 497.5 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1635, allocations: 0 / 497.5 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.1636, allocations: 4.031 kB / 497.5 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.1651, allocations: 1.065 MB / 498.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.1652, allocations: 0 / 498.6 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/0.1655, allocations: 79.91 kB / 498.7 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001373/0.1657, allocations: 32.78 kB / 498.7 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.915e-05/0.1657, allocations: 16.14 kB / 498.7 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003519/0.1661, allocations: 0.5563 MB / 499.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1661, allocations: 3.938 kB / 499.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/0.1669, allocations: 0.563 MB / 499.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.167, allocations: 120.5 kB / 499.9 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.1671, allocations: 8 kB / 500 MB, free: 0.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1672, allocations: 12 kB / 500 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.897e-05/0.1673, allocations: 31.91 kB / 500 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.1673, allocations: 8 kB / 0.4883 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000305/0.1676, allocations: 271.1 kB / 0.4885 GB, free: 324 kB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1677, allocations: 0 / 0.4885 GB, free: 324 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005669/0.1682, allocations: 132 kB / 0.4887 GB, free: 192 kB / 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.0001874/0.1684, allocations: 123.7 kB / 0.4888 GB, free: 60 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006958/0.1691, allocations: 325 kB / 0.4891 GB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1691, allocations: 4.312 kB / 0.4891 GB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.1694, allocations: 145.1 kB / 0.4892 GB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000632/0.1701, allocations: 69.94 kB / 0.4893 GB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.173, allocations: 2.149 MB / 0.4914 GB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005988/0.1737, allocations: 0.9561 MB / 0.4923 GB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001981/0.1739, allocations: 60.53 kB / 0.4924 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.866e-05/0.174, allocations: 43.42 kB / 0.4924 GB, free: 12.24 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.174, allocations: 0 / 0.4924 GB, free: 12.24 MB / 382.1 MB Notification: Performance of Templates: time 0.009823/0.1838, allocations: 3.927 MB / 0.4963 GB, free: 8.34 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