Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.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) 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(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001244, allocations: 95.59 kB / 16.93 MB, free: 5.984 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.001515/0.001515, allocations: 181.4 kB / 17.82 MB, free: 5.652 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.797/1.797, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.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.0005568/0.0005569, allocations: 8 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1309, allocations: 47.58 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003649/0.1346, allocations: 2.59 MB / 330.9 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.1366, allocations: 0.9597 MB / 331.9 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002463/0.1369, allocations: 11.94 kB / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003307/0.1372, allocations: 51.55 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003742/0.1376, allocations: 131.6 kB / 332.1 MB, free: 344 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004632/0.1381, allocations: 183.6 kB / 332.2 MB, free: 160 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004905/0.1386, allocations: 339.9 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002978/0.1389, allocations: 131.6 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.1391, allocations: 159.3 kB / 332.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002403/0.1394, allocations: 167.2 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.062e-05/0.1394, allocations: 12 kB / 333 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.579e-05/0.1395, allocations: 16 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.265e-05/0.1396, allocations: 67.69 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.904e-05/0.1397, allocations: 101.5 kB / 333.2 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.14, allocations: 347.3 kB / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.14, allocations: 0 / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.14, allocations: 0 / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.1401, allocations: 0 / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00128/0.1414, allocations: 0.7248 MB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.1414, allocations: 12.03 kB / 334.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.661e-05/0.1415, allocations: 47.44 kB / 334.3 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004706/0.142, allocations: 350.6 kB / 334.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.142, allocations: 33 kB / 334.7 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.131e-05/0.1421, allocations: 47.89 kB / 334.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008647/0.143, allocations: 458.4 kB / 335.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.143, allocations: 4 kB / 335.2 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/0.1431, allocations: 15.98 kB / 335.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.1431, allocations: 16 kB / 335.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009893/0.1441, allocations: 415.7 kB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.1462, allocations: 1.583 MB / 337.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008103/0.147, allocations: 342.7 kB / 337.6 MB, free: 10.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.147, allocations: 7.953 kB / 337.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.712e-05/0.1471, allocations: 38.55 kB / 337.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.1471, allocations: 4 kB / 337.6 MB, free: 10.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003192/0.1503, allocations: 1.498 MB / 339.1 MB, free: 8.953 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.1504, allocations: 81.11 kB / 339.2 MB, free: 8.855 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.1508, allocations: 365.5 kB / 339.5 MB, free: 8.488 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.1508, allocations: 29.7 kB / 339.6 MB, free: 8.453 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.151, allocations: 251.9 kB / 339.8 MB, free: 8.203 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.99e-05/0.1511, allocations: 122.4 kB / 339.9 MB, free: 8.082 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.942e-05/0.1511, allocations: 4 kB / 339.9 MB, free: 8.078 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1513, allocations: 358.7 kB / 340.3 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004509/0.1517, allocations: 188.7 kB / 340.5 MB, free: 7.535 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005072/0.1523, allocations: 268.8 kB / 340.7 MB, free: 7.238 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004554/0.1527, allocations: 199.9 kB / 340.9 MB, free: 7.043 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1527, allocations: 0 / 340.9 MB, free: 7.043 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001076/0.1538, allocations: 0.5286 MB / 341.5 MB, free: 6.508 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003332/0.1542, allocations: 0.7823 MB / 342.2 MB, free: 5.664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.1542, allocations: 4 kB / 342.2 MB, free: 5.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1542, allocations: 7.984 kB / 342.3 MB, free: 5.652 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009024/0.1551, allocations: 259.7 kB / 342.5 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.1568, allocations: 1.559 MB / 344.1 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.1571, allocations: 56.17 kB / 344.1 MB, free: 3.652 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/0.1572, allocations: 12 kB / 344.1 MB, free: 3.641 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.1572, allocations: 4 kB / 344.1 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009144/0.1581, allocations: 439.6 kB / 344.6 MB, free: 3.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1581, allocations: 4 kB / 344.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.758e-06/0.1581, allocations: 4.156 kB / 344.6 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004624/0.1586, allocations: 131.8 kB / 344.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.1586, allocations: 4 kB / 344.7 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.1589, allocations: 43.97 kB / 344.8 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.1589, allocations: 19.98 kB / 344.8 MB, free: 3.004 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000234/0.1592, allocations: 237 kB / 345 MB, free: 2.762 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.973e-05/0.1592, allocations: 39.53 kB / 345 MB, free: 2.723 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.599e-05/0.1593, allocations: 44.25 kB / 345.1 MB, free: 2.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1593, allocations: 7.984 kB / 345.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1593, allocations: 0 / 345.1 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1594, allocations: 4 kB / 345.1 MB, free: 2.668 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/0.1611, allocations: 0.9689 MB / 346.1 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.1612, allocations: 3.938 kB / 346.1 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.1616, allocations: 99.98 kB / 346.2 MB, free: 1.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.1616, allocations: 4 kB / 346.2 MB, free: 1.527 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.1617, allocations: 4 kB / 346.2 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1617, allocations: 4 kB / 346.2 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1617, allocations: 0 / 346.2 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.1632, allocations: 0.7982 MB / 347 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.1634, allocations: 132.7 kB / 347.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.1634, allocations: 8 kB / 347.1 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.1637, allocations: 56.02 kB / 347.2 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.557e-05/0.1638, allocations: 23.97 kB / 347.2 MB, free: 444 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1638, allocations: 12 kB / 347.2 MB, free: 432 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.1641, allocations: 255.2 kB / 347.5 MB, free: 180 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1641, allocations: 0 / 347.5 MB, free: 180 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004926/0.1646, allocations: 132 kB / 347.6 MB, free: 48 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * 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.0001541/0.1648, allocations: 103.5 kB / 347.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.1667, allocations: 0.7967 MB / 348.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1667, allocations: 0 / 348.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004464/0.1672, allocations: 200.1 kB / 348.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.1678, allocations: 101.8 kB / 348.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.1698, allocations: 1.209 MB / 350 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.1703, allocations: 0.8354 MB / 350.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.1705, allocations: 71.2 kB / 350.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.216e-05/0.1706, allocations: 31.44 kB / 350.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1706, allocations: 0 / 350.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.008524/0.1791, allocations: 4.1 MB / 355 MB, free: 8.543 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches