Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009577/0.0009576, allocations: 96.7 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 175.1 kB / 16.58 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.795/1.795, allocations: 205.4 MB / 222.7 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.412/0.412, allocations: 43.57 MB / 314.6 MB, free: 8.809 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000606/0.0006063, allocations: 15.98 kB / 383.9 MB, free: 8.008 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1412, allocations: 58.86 MB / 442.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004489/0.1457, allocations: 2.206 MB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.1473, allocations: 0.6596 MB / 445.7 MB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1475, allocations: 11.94 kB / 445.7 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1476, allocations: 31.7 kB / 445.7 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.1478, allocations: 71.39 kB / 445.8 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.1481, allocations: 59.92 kB / 445.8 MB, free: 9.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003855/0.1485, allocations: 310.6 kB / 446.1 MB, free: 9.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.1488, allocations: 65.56 kB / 446.2 MB, free: 9.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001658/0.1489, allocations: 107.6 kB / 446.3 MB, free: 9.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.1491, allocations: 119.5 kB / 446.4 MB, free: 9.391 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.1492, allocations: 12 kB / 446.4 MB, free: 9.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.798e-05/0.1492, allocations: 15.94 kB / 446.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-05/0.1493, allocations: 47.77 kB / 446.5 MB, free: 9.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.468e-05/0.1494, allocations: 73.58 kB / 446.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.1496, allocations: 211.7 kB / 446.8 MB, free: 9.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1497, allocations: 0 / 446.8 MB, free: 9.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1497, allocations: 0 / 446.8 MB, free: 9.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.1497, allocations: 0 / 446.8 MB, free: 9.031 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009089/0.1506, allocations: 0.5533 MB / 447.3 MB, free: 8.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1507, allocations: 16.02 kB / 447.3 MB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.382e-05/0.1507, allocations: 31.62 kB / 447.4 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.151, allocations: 254.5 kB / 447.6 MB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.1511, allocations: 24.5 kB / 447.7 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.1511, allocations: 24 kB / 447.7 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.1516, allocations: 281.9 kB / 448 MB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.1517, allocations: 7.859 kB / 448 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.455e-05/0.1517, allocations: 15.94 kB / 448 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.1517, allocations: 8 kB / 448 MB, free: 7.715 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000454/0.1522, allocations: 203.8 kB / 448.2 MB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.1541, allocations: 1.317 MB / 449.5 MB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004988/0.1546, allocations: 254.3 kB / 449.7 MB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.1548, allocations: 111.4 kB / 449.9 MB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1549, allocations: 4 kB / 449.9 MB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.1549, allocations: 38.69 kB / 449.9 MB, free: 5.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.904e-06/0.1549, allocations: 4 kB / 449.9 MB, free: 5.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=32): time 0.002854/0.1578, allocations: 1.635 MB / 451.5 MB, free: 3.789 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/0.1579, allocations: 132.5 kB / 451.7 MB, free: 3.629 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.1581, allocations: 221 kB / 451.9 MB, free: 3.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.1581, allocations: 33.7 kB / 451.9 MB, free: 3.359 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.1583, allocations: 176.2 kB / 452.1 MB, free: 3.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.283e-05/0.1584, allocations: 114.3 kB / 452.2 MB, free: 3.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.1584, allocations: 12 kB / 452.2 MB, free: 3.059 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1586, allocations: 338.8 kB / 452.5 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.1588, allocations: 112.8 kB / 452.7 MB, free: 2.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003241/0.1591, allocations: 245.4 kB / 452.9 MB, free: 2.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.1594, allocations: 139.9 kB / 453 MB, free: 2.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.1595, allocations: 4 kB / 453 MB, free: 2.172 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007435/0.1602, allocations: 413.5 kB / 453.4 MB, free: 1.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.1602, allocations: 4 kB / 453.4 MB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1603, allocations: 4 kB / 453.4 MB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.77e-05/0.1603, allocations: 11.95 kB / 453.5 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005851/0.1609, allocations: 112.6 kB / 453.6 MB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-05/0.1609, allocations: 11.98 kB / 453.6 MB, free: 1.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.1611, allocations: 27.98 kB / 453.6 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.1612, allocations: 16.08 kB / 453.6 MB, free: 1.578 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.1613, allocations: 153.7 kB / 453.8 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-05/0.1615, allocations: 27.62 kB / 453.8 MB, free: 1.391 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.263e-05/0.1615, allocations: 41.7 kB / 453.8 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.1616, allocations: 11.94 kB / 453.8 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.1616, allocations: 0 / 453.8 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1616, allocations: 8.266 kB / 453.9 MB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.163, allocations: 1.005 MB / 454.9 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.1631, allocations: 4 kB / 454.9 MB, free: 256 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003421/0.1634, allocations: 88.38 kB / 455 MB, free: 168 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1634, allocations: 4 kB / 455 MB, free: 164 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.1634, allocations: 11.94 kB / 455 MB, free: 152 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.337e-06/0.1635, allocations: 11.98 kB / 455 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1635, allocations: 0 / 455 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2827/0.4462, allocations: 0.7552 MB / 455.7 MB, free: 45.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.41e-05/0.4463, allocations: 106.3 kB / 455.8 MB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.331e-05/0.4464, allocations: 7.969 kB / 455.8 MB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002985/0.4467, allocations: 24.86 kB / 455.9 MB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-05/0.4468, allocations: 32.16 kB / 455.9 MB, free: 45.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.4468, allocations: 5.562 kB / 455.9 MB, free: 45.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001379/0.4469, allocations: 157.3 kB / 456.1 MB, free: 45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4469, allocations: 3.656 kB / 456.1 MB, free: 45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005347/0.4475, allocations: 66 kB / 456.1 MB, free: 45 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001109/0.4476, allocations: 104.6 kB / 456.2 MB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005609/0.4482, allocations: 293.6 kB / 456.5 MB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4482, allocations: 0 / 456.5 MB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002396/0.4484, allocations: 150.2 kB / 456.7 MB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.4491, allocations: 39.69 kB / 456.7 MB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.4503, allocations: 1.066 MB / 457.8 MB, free: 44.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001913/0.4505, allocations: 0.7695 MB / 458.5 MB, free: 43.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001368/0.4507, allocations: 35.52 kB / 458.6 MB, free: 43.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.672e-05/0.4507, allocations: 32.83 kB / 458.6 MB, free: 43.58 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4507, allocations: 1.312 kB / 458.6 MB, free: 43.58 MB / 382.1 MB Notification: Performance of Templates: time 0.005145/0.4559, allocations: 2.101 MB / 460.7 MB, free: 43.46 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches