Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 96.17 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001563/0.001563, allocations: 202.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 227.2 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002728, allocations: 4 kB / 306.6 MB, free: 1.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1276, allocations: 51.49 MB / 358 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003905/0.1315, allocations: 2.589 MB / 360.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002418/0.134, allocations: 0.9432 MB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000283/0.1344, allocations: 15.88 kB / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.1347, allocations: 47.62 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004057/0.1351, allocations: 135.5 kB / 361.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.1356, allocations: 175.1 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004938/0.1361, allocations: 339.9 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003014/0.1364, allocations: 135.4 kB / 362.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1366, allocations: 151.3 kB / 362.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002376/0.1369, allocations: 167.2 kB / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.054e-05/0.1369, allocations: 19.94 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.602e-05/0.137, allocations: 16 kB / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.528e-05/0.1371, allocations: 67.73 kB / 362.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.363e-05/0.1372, allocations: 97.45 kB / 362.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003523/0.1375, allocations: 347.3 kB / 363.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1375, allocations: 0 / 363.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1375, allocations: 0 / 363.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1376, allocations: 0 / 363.3 MB, free: 8.672 MB / 302.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.001304/0.1389, allocations: 0.721 MB / 364 MB, free: 7.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.1389, allocations: 8.031 kB / 364 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.139, allocations: 51.44 kB / 364 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.1395, allocations: 342.7 kB / 364.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.1396, allocations: 29 kB / 364.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.153e-05/0.1397, allocations: 39.95 kB / 364.4 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009418/0.1406, allocations: 475.1 kB / 364.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.171e-05/0.1407, allocations: 3.906 kB / 364.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.376e-05/0.1407, allocations: 16 kB / 364.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.1407, allocations: 8 kB / 364.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.1418, allocations: 419.6 kB / 365.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/0.1439, allocations: 1.59 MB / 366.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008616/0.1448, allocations: 338.8 kB / 367.3 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.1448, allocations: 8 kB / 367.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.1449, allocations: 34.56 kB / 367.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.294e-06/0.1449, allocations: 0 / 367.3 MB, free: 4.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.00345/0.1483, allocations: 1.522 MB / 368.8 MB, free: 2.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.1484, allocations: 110.8 kB / 368.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003805/0.1488, allocations: 349.6 kB / 369.3 MB, free: 2.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.1488, allocations: 33.7 kB / 369.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.149, allocations: 243.8 kB / 369.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.866e-05/0.1491, allocations: 114.5 kB / 369.7 MB, free: 1.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.676e-05/0.1492, allocations: 4 kB / 369.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1493, allocations: 354.8 kB / 370 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.1498, allocations: 188.8 kB / 370.2 MB, free: 1.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.1503, allocations: 269.7 kB / 370.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004735/0.1508, allocations: 211.8 kB / 370.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1508, allocations: 0 / 370.7 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001119/0.152, allocations: 0.5203 MB / 371.2 MB, free: 336 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.231/0.383, allocations: 0.7904 MB / 372 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/0.383, allocations: 3.156 kB / 372 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/0.3831, allocations: 4.062 kB / 372 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.3842, allocations: 262.9 kB / 372.2 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.3861, allocations: 1.557 MB / 373.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005591/0.3866, allocations: 52.72 kB / 373.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.3867, allocations: 15.34 kB / 373.9 MB, free: 17.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.3867, allocations: 4.125 kB / 373.9 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001248/0.388, allocations: 446 kB / 374.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.388, allocations: 2.156 kB / 374.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/0.388, allocations: 8.688 kB / 374.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005624/0.3886, allocations: 127.6 kB / 374.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3886, allocations: 6.141 kB / 374.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.3889, allocations: 44.06 kB / 374.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.389, allocations: 15.88 kB / 374.5 MB, free: 17.59 MB / 302.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.0002699/0.3892, allocations: 248.4 kB / 374.7 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.661e-05/0.3893, allocations: 41.33 kB / 374.8 MB, free: 17.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.3894, allocations: 46.27 kB / 374.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3894, allocations: 2.656 kB / 374.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3895, allocations: 1.797 kB / 374.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3895, allocations: 1.219 kB / 374.8 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.3914, allocations: 0.9623 MB / 375.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.3914, allocations: 1.094 kB / 375.8 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004869/0.3919, allocations: 96.12 kB / 375.9 MB, free: 17.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.376e-06/0.3919, allocations: 7.938 kB / 375.9 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.3919, allocations: 9.734 kB / 375.9 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.392, allocations: 1.812 kB / 375.9 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.392, allocations: 2.359 kB / 375.9 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00184/0.3938, allocations: 0.7887 MB / 376.7 MB, free: 16.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.394, allocations: 136.2 kB / 376.8 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.583e-05/0.3941, allocations: 9.875 kB / 376.8 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/0.3945, allocations: 49.73 kB / 376.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.3946, allocations: 23.41 kB / 376.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.3946, allocations: 9.828 kB / 376.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003831/0.395, allocations: 245.6 kB / 377.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.395, allocations: 0 / 377.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006639/0.3957, allocations: 138.4 kB / 377.3 MB, free: 16.58 MB / 302.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.0001509/0.3958, allocations: 109.9 kB / 377.4 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002297/0.3981, allocations: 0.7851 MB / 378.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3982, allocations: 0.625 kB / 378.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005299/0.3987, allocations: 205.5 kB / 378.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005896/0.3993, allocations: 93.12 kB / 378.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.4013, allocations: 1.208 MB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.4017, allocations: 0.8303 MB / 380.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002958/0.402, allocations: 61.06 kB / 380.6 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.4021, allocations: 30.88 kB / 380.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4022, allocations: 0 / 380.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Templates: time 0.01036/0.4125, allocations: 4.141 MB / 384.8 MB, free: 14.46 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches