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.001014/0.001014, allocations: 104.5 kB / 17.63 MB, free: 5.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.001231/0.001231, allocations: 192 kB / 18.56 MB, free: 4.434 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.381/1.381, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2169/0.2169, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 71 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1173, allocations: 60.83 MB / 469.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007334/0.1247, allocations: 5.732 MB / 475 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00493/0.1297, allocations: 2.305 MB / 477.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.1308, allocations: 39.75 kB / 477.3 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007167/0.1315, allocations: 226 kB / 477.6 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009742/0.1325, allocations: 178.3 kB / 477.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.134, allocations: 462.9 kB / 478.2 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.1355, allocations: 1.099 MB / 479.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.1365, allocations: 0.6185 MB / 479.9 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000537/0.1371, allocations: 358.7 kB / 480.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005757/0.1377, allocations: 394 kB / 480.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001821/0.1379, allocations: 96 kB / 480.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003464/0.1382, allocations: 152 kB / 480.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.1384, allocations: 215.2 kB / 481.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004123/0.1389, allocations: 469.7 kB / 481.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001096/0.14, allocations: 1.234 MB / 482.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.14, allocations: 7.984 kB / 482.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.14, allocations: 0 / 482.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.14, allocations: 0 / 482.8 MB, free: 0.75 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.001376/0.1414, allocations: 1.13 MB / 483.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1414, allocations: 8.031 kB / 483.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.1416, allocations: 103.7 kB / 484 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006539/0.1422, allocations: 0.5631 MB / 484.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.393e-05/0.1423, allocations: 66 kB / 484.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1424, allocations: 99.84 kB / 484.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.1437, allocations: 0.8887 MB / 485.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.1438, allocations: 19.77 kB / 485.7 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.984e-05/0.1438, allocations: 36 kB / 485.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.815e-05/0.1439, allocations: 24 kB / 485.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009027/0.1448, allocations: 0.5268 MB / 486.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003208/0.148, allocations: 3.643 MB / 489.9 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004948/0.1485, allocations: 224.5 kB / 490.1 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.1487, allocations: 108.8 kB / 490.2 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002505/0.1489, allocations: 247.3 kB / 490.5 MB, free: 8.703 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.149, allocations: 38.56 kB / 490.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.724e-06/0.149, allocations: 0 / 490.5 MB, free: 8.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.002173/0.1511, allocations: 1.284 MB / 491.8 MB, free: 7.277 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.1512, allocations: 63.28 kB / 491.8 MB, free: 7.203 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003998/0.1516, allocations: 401.8 kB / 492.2 MB, free: 6.809 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.1516, allocations: 33.7 kB / 492.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.1519, allocations: 458.1 kB / 492.7 MB, free: 6.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.152, allocations: 146 kB / 492.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.1521, allocations: 98.16 kB / 492.9 MB, free: 6.062 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1523, allocations: 358.8 kB / 493.3 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.1525, allocations: 117.1 kB / 493.4 MB, free: 5.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.1529, allocations: 306.2 kB / 493.7 MB, free: 5.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005529/0.1534, allocations: 456.7 kB / 494.2 MB, free: 4.676 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1534, allocations: 4 kB / 494.2 MB, free: 4.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000766/0.1542, allocations: 0.513 MB / 494.7 MB, free: 4.148 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.1542, allocations: 12.12 kB / 494.7 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1543, allocations: 8 kB / 494.7 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/0.1544, allocations: 36.83 kB / 494.7 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003609/0.1548, allocations: 123.8 kB / 494.9 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004108/0.1552, allocations: 0.56 MB / 495.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.1554, allocations: 19.98 kB / 495.4 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.1555, allocations: 28.06 kB / 495.5 MB, free: 3.336 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.0003085/0.1558, allocations: 237.6 kB / 495.7 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.704e-05/0.1559, allocations: 47.38 kB / 495.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005759/0.1565, allocations: 327.2 kB / 496.1 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1565, allocations: 4 kB / 496.1 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1565, allocations: 4 kB / 496.1 MB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.1565, allocations: 3.984 kB / 496.1 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.1578, allocations: 1.058 MB / 497.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.1578, allocations: 0 / 497.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000328/0.1582, allocations: 79.89 kB / 497.2 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001149/0.1583, allocations: 36.83 kB / 497.2 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.1583, allocations: 11.98 kB / 497.3 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003297/0.1587, allocations: 0.5483 MB / 497.8 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.1587, allocations: 8.219 kB / 497.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007201/0.1594, allocations: 0.5627 MB / 498.4 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.511e-05/0.1595, allocations: 112.5 kB / 498.5 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.956e-05/0.1595, allocations: 12 kB / 498.5 MB, free: 120 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.1597, allocations: 15.92 kB / 498.5 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.941e-05/0.1598, allocations: 35.94 kB / 498.5 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1598, allocations: 8 kB / 498.5 MB, free: 60 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002674/0.1601, allocations: 271.1 kB / 498.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1601, allocations: 0 / 498.8 MB, free: 15.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004898/0.1606, allocations: 124 kB / 498.9 MB, free: 15.68 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.0001458/0.1607, allocations: 127.1 kB / 499.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.1614, allocations: 341 kB / 499.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1614, allocations: 0 / 499.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.1616, allocations: 135.8 kB / 499.5 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005068/0.1621, allocations: 69.94 kB / 499.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002324/0.1645, allocations: 1.633 MB / 0.4895 GB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.165, allocations: 0.9563 MB / 0.4904 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001778/0.1652, allocations: 60.53 kB / 0.4905 GB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.534e-05/0.1652, allocations: 47.36 kB / 0.4905 GB, free: 12.23 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1652, allocations: 0 / 0.4905 GB, free: 12.23 MB / 382.1 MB Notification: Performance of Templates: time 0.00946/0.1747, allocations: 4.134 MB / 0.4946 GB, free: 8.129 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