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.001372/0.001372, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 61.44 kB / 306.9 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09972, allocations: 50.53 MB / 357.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005468/0.1052, allocations: 3.144 MB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1075, allocations: 0.9895 MB / 361.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004872/0.1081, allocations: 15.94 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004607/0.1086, allocations: 67.48 kB / 361.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004107/0.109, allocations: 87.33 kB / 361.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006964/0.1097, allocations: 207.7 kB / 361.9 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006752/0.1104, allocations: 483 kB / 362.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.1108, allocations: 161.2 kB / 362.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002961/0.1111, allocations: 171.2 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003285/0.1114, allocations: 210.9 kB / 362.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.792e-05/0.1115, allocations: 20 kB / 362.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.748e-05/0.1116, allocations: 24 kB / 363 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/0.1117, allocations: 79.67 kB / 363.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.1119, allocations: 198.8 kB / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.1123, allocations: 351.5 kB / 363.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1123, allocations: 0 / 363.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.1123, allocations: 4 kB / 363.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.1123, allocations: 0 / 363.6 MB, free: 8.324 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.001577/0.1139, allocations: 0.7699 MB / 364.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.114, allocations: 12.03 kB / 364.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.1141, allocations: 48.38 kB / 364.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.1146, allocations: 367.6 kB / 364.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.646e-05/0.1147, allocations: 29.38 kB / 364.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.651e-05/0.1148, allocations: 36.38 kB / 364.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009593/0.1157, allocations: 455.5 kB / 365.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.1158, allocations: 7.906 kB / 365.3 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.1158, allocations: 19.98 kB / 365.3 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.1158, allocations: 8 kB / 365.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009939/0.1168, allocations: 375.6 kB / 365.7 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002422/0.1193, allocations: 1.571 MB / 367.3 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000817/0.1201, allocations: 307.3 kB / 367.6 MB, free: 4.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004398/0.1205, allocations: 180.7 kB / 367.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.1206, allocations: 7.938 kB / 367.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.1206, allocations: 30.56 kB / 367.8 MB, free: 3.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.1206, allocations: 4 kB / 367.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003282/0.1239, allocations: 1.373 MB / 369.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.124, allocations: 110.8 kB / 369.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000429/0.1245, allocations: 357.6 kB / 369.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.1245, allocations: 33.7 kB / 369.6 MB, free: 1.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1247, allocations: 239.9 kB / 369.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.63e-05/0.1248, allocations: 114.5 kB / 370 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.1249, allocations: 85.97 kB / 370.1 MB, free: 1.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1251, allocations: 350.8 kB / 370.4 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.1255, allocations: 166.5 kB / 370.6 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.1261, allocations: 261.7 kB / 370.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/0.127, allocations: 399.4 kB / 371.2 MB, free: 248 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.127, allocations: 0 / 371.2 MB, free: 248 kB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.2033/0.3303, allocations: 479.2 kB / 371.7 MB, free: 20.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.3303, allocations: 9.672 kB / 371.7 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.3304, allocations: 5.234 kB / 371.7 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.37e-05/0.3304, allocations: 4.344 kB / 371.7 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.3315, allocations: 208.2 kB / 371.9 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.3331, allocations: 1.473 MB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.3336, allocations: 39.72 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.498e-05/0.3336, allocations: 17.91 kB / 373.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006375/0.3343, allocations: 271 kB / 373.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005432/0.3348, allocations: 246.9 kB / 373.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008453/0.3357, allocations: 374.6 kB / 374.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.17e-06/0.3357, allocations: 3.969 kB / 374.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001117/0.3368, allocations: 468.8 kB / 374.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3369, allocations: 5.875 kB / 374.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3369, allocations: 3.328 kB / 374.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3369, allocations: 4.344 kB / 374.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000547/0.3374, allocations: 122.3 kB / 374.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.3375, allocations: 9.141 kB / 374.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/0.3379, allocations: 35.33 kB / 375 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.69e-05/0.3379, allocations: 14.97 kB / 375 MB, free: 18.76 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.3382, allocations: 206.5 kB / 375.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.3383, allocations: 46.66 kB / 375.2 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.3384, allocations: 49.75 kB / 375.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.3385, allocations: 9.969 kB / 375.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3385, allocations: 0.5625 kB / 375.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3385, allocations: 1.828 kB / 375.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001996/0.3405, allocations: 0.9215 MB / 376.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3405, allocations: 1.406 kB / 376.2 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004365/0.341, allocations: 78.81 kB / 376.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/0.341, allocations: 7.375 kB / 376.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.849e-05/0.341, allocations: 12.03 kB / 376.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.341, allocations: 5.594 kB / 376.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3411, allocations: 6.078 kB / 376.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.3425, allocations: 0.6689 MB / 377 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.3427, allocations: 137.8 kB / 377.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.3428, allocations: 8.734 kB / 377.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.3431, allocations: 36.52 kB / 377.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.3432, allocations: 23.91 kB / 377.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.3433, allocations: 7.531 kB / 377.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003264/0.3436, allocations: 250.5 kB / 377.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3436, allocations: 1.312 kB / 377.4 MB, free: 17.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006983/0.3443, allocations: 134.1 kB / 377.6 MB, free: 17.46 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001532/0.3445, allocations: 112.5 kB / 377.7 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.3466, allocations: 0.6866 MB / 378.4 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.3467, allocations: 1 kB / 378.4 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005086/0.3472, allocations: 178 kB / 378.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008561/0.348, allocations: 94.67 kB / 378.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.3503, allocations: 1.204 MB / 379.8 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.3507, allocations: 0.8202 MB / 380.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001409/0.3508, allocations: 31.77 kB / 380.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3508, allocations: 0 / 380.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Templates: time 0.01319/0.364, allocations: 5.936 MB / 386.6 MB, free: 14 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches