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.001082/0.001082, allocations: 99.25 kB / 16.95 MB, free: 6.453 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.001234/0.001235, allocations: 183.2 kB / 17.84 MB, free: 6.004 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.713/1.713, allocations: 205.4 MB / 224 MB, free: 13.14 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.0004856/0.0004856, allocations: 11.98 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1157, allocations: 47.58 MB / 328.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004536/0.1203, allocations: 2.651 MB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002292/0.1226, allocations: 0.9557 MB / 331.9 MB, free: 468 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002944/0.1229, allocations: 15.94 kB / 332 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004074/0.1233, allocations: 59.48 kB / 332 MB, free: 392 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002484/0.1236, allocations: 95.27 kB / 332.1 MB, free: 296 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000669/0.1243, allocations: 163.7 kB / 332.3 MB, free: 132 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007591/0.125, allocations: 474.9 kB / 332.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003552/0.1254, allocations: 139.6 kB / 332.9 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.1256, allocations: 155.2 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1259, allocations: 167.1 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.413e-05/0.1259, allocations: 12 kB / 333.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.678e-05/0.126, allocations: 16 kB / 333.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.1261, allocations: 75.69 kB / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.233e-05/0.1262, allocations: 97.45 kB / 333.4 MB, free: 15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.1266, allocations: 343.4 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.1266, allocations: 0 / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1266, allocations: 0 / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1266, allocations: 0 / 333.7 MB, free: 14.66 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.001448/0.1281, allocations: 0.7288 MB / 334.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.1281, allocations: 8.031 kB / 334.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.439e-05/0.1282, allocations: 47.44 kB / 334.5 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.1289, allocations: 362.5 kB / 334.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.1289, allocations: 25 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.83e-05/0.129, allocations: 43.91 kB / 334.9 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009295/0.13, allocations: 466.3 kB / 335.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.13, allocations: 11.98 kB / 335.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.13, allocations: 16 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.1301, allocations: 8 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000986/0.131, allocations: 419.6 kB / 335.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.1335, allocations: 1.583 MB / 337.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008115/0.1343, allocations: 342.7 kB / 337.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004472/0.1348, allocations: 192.6 kB / 337.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.1348, allocations: 4 kB / 337.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.1349, allocations: 34.56 kB / 338 MB, free: 10.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.1349, allocations: 0 / 338 MB, free: 10.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003248/0.1381, allocations: 1.51 MB / 339.5 MB, free: 8.586 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.1382, allocations: 81.11 kB / 339.5 MB, free: 8.488 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004185/0.1386, allocations: 361.5 kB / 339.9 MB, free: 8.125 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1387, allocations: 29.7 kB / 339.9 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.1388, allocations: 248 kB / 340.2 MB, free: 7.844 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.595e-05/0.1389, allocations: 114.3 kB / 340.3 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.751e-05/0.1389, allocations: 11.94 kB / 340.3 MB, free: 7.719 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1391, allocations: 354.8 kB / 340.6 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004286/0.1395, allocations: 184.8 kB / 340.8 MB, free: 7.184 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000522/0.1401, allocations: 268.8 kB / 341.1 MB, free: 6.887 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.1405, allocations: 203.9 kB / 341.3 MB, free: 6.688 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1405, allocations: 0 / 341.3 MB, free: 6.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001111/0.1416, allocations: 0.5325 MB / 341.8 MB, free: 6.148 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.389e-05/0.1417, allocations: 152.1 kB / 342 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1417, allocations: 0 / 342 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1418, allocations: 8 kB / 342 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008649/0.1426, allocations: 263.7 kB / 342.2 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.1443, allocations: 1.528 MB / 343.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.1447, allocations: 56.03 kB / 343.8 MB, free: 3.988 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.1447, allocations: 19.98 kB / 343.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.1448, allocations: 4 kB / 343.8 MB, free: 3.965 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009025/0.1457, allocations: 439.6 kB / 344.3 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.1457, allocations: 7.953 kB / 344.3 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.203e-06/0.1457, allocations: 4 kB / 344.3 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004765/0.1462, allocations: 128 kB / 344.4 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1462, allocations: 7.938 kB / 344.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.1465, allocations: 47.95 kB / 344.5 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.1465, allocations: 12 kB / 344.5 MB, free: 3.332 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.0002377/0.1468, allocations: 237.1 kB / 344.7 MB, free: 3.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.1469, allocations: 43.52 kB / 344.7 MB, free: 3.047 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.84e-05/0.147, allocations: 48.2 kB / 344.8 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.147, allocations: 4 kB / 344.8 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.147, allocations: 4 kB / 344.8 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.147, allocations: 0 / 344.8 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.1487, allocations: 0.9689 MB / 345.8 MB, free: 1.957 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1487, allocations: 4 kB / 345.8 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.1492, allocations: 96 kB / 345.9 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1492, allocations: 8 kB / 345.9 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.1492, allocations: 4 kB / 345.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.1492, allocations: 4 kB / 345.9 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1492, allocations: 3.938 kB / 345.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.1506, allocations: 0.7369 MB / 346.6 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.1508, allocations: 136.7 kB / 346.8 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.598e-05/0.1508, allocations: 8 kB / 346.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.1511, allocations: 43.95 kB / 346.8 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.319e-05/0.1512, allocations: 35.84 kB / 346.8 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.1512, allocations: 8 kB / 346.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003455/0.1516, allocations: 247.2 kB / 347.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1516, allocations: 0 / 347.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006089/0.1522, allocations: 136 kB / 347.2 MB, free: 468 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.000126/0.1523, allocations: 107.5 kB / 347.3 MB, free: 352 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002011/0.1543, allocations: 0.8006 MB / 348.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1544, allocations: 0 / 348.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004514/0.1548, allocations: 204.1 kB / 348.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006857/0.1555, allocations: 96.77 kB / 348.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001916/0.1574, allocations: 1.224 MB / 349.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.1578, allocations: 0.8159 MB / 350.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002653/0.1581, allocations: 59.25 kB / 350.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.558e-05/0.1582, allocations: 35.42 kB / 350.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1582, allocations: 0 / 350.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of Templates: time 0.0084/0.1666, allocations: 4.109 MB / 354.7 MB, free: 8.949 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (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) 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