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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001071/0.001071, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 161 kB / 24.99 MB, free: 8.805 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.013/1.013, allocations: 177 MB / 205.2 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 273 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.334e-05/3.531e-05, allocations: 2.312 kB / 273 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005239/0.005274, allocations: 3.062 MB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.007606, allocations: 0.9659 MB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003832/0.007989, allocations: 15.88 kB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004426/0.008432, allocations: 99.09 kB / 277.1 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003528/0.008784, allocations: 107 kB / 277.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007261/0.009511, allocations: 239.5 kB / 277.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006619/0.01017, allocations: 0.53 MB / 278 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002957/0.01047, allocations: 121.6 kB / 278.1 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003742/0.01084, allocations: 279.3 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.0111, allocations: 163.5 kB / 278.5 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.049e-05/0.01117, allocations: 40 kB / 278.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.01123, allocations: 40 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.01134, allocations: 107.6 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004144/0.01175, allocations: 135.6 kB / 278.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.01226, allocations: 342.6 kB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.01226, allocations: 8 kB / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.01227, allocations: 0 / 279.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.01227, allocations: 0 / 279.2 MB, free: 11.54 MB / 266.7 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.001117/0.01339, allocations: 0.7764 MB / 280 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.01343, allocations: 11.98 kB / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.01353, allocations: 92.61 kB / 280.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.01388, allocations: 308.2 kB / 280.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.01391, allocations: 29.31 kB / 280.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.01396, allocations: 44.38 kB / 280.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/0.01442, allocations: 438.5 kB / 280.9 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.01444, allocations: 8.141 kB / 280.9 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.01446, allocations: 12.38 kB / 280.9 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.01447, allocations: 11.94 kB / 280.9 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.01471, allocations: 161.8 kB / 281.1 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/0.01609, allocations: 1.584 MB / 282.7 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.01648, allocations: 190.1 kB / 282.8 MB, free: 7.688 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.01658, allocations: 67.66 kB / 282.9 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.01662, allocations: 4 kB / 282.9 MB, free: 7.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.01665, allocations: 41.39 kB / 283 MB, free: 7.562 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 4.939e-06/0.01666, allocations: 4 kB / 283 MB, free: 7.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001191/0.01785, allocations: 0.7825 MB / 283.7 MB, free: 6.711 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.01791, allocations: 106.8 kB / 283.8 MB, free: 6.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.01818, allocations: 378.7 kB / 284.2 MB, free: 6.191 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.0182, allocations: 29.7 kB / 284.2 MB, free: 6.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.01834, allocations: 287.5 kB / 284.5 MB, free: 5.871 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.194e-05/0.01841, allocations: 126.9 kB / 284.6 MB, free: 5.746 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.812e-05/0.0185, allocations: 79.84 kB / 284.7 MB, free: 5.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.01864, allocations: 0.5196 MB / 285.2 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.01875, allocations: 73.64 kB / 285.3 MB, free: 5.055 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.01894, allocations: 232.9 kB / 285.5 MB, free: 4.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.01919, allocations: 233.5 kB / 285.8 MB, free: 4.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01919, allocations: 4 kB / 285.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000378/0.01957, allocations: 325 kB / 286.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.01959, allocations: 11.94 kB / 286.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.0196, allocations: 0 / 286.1 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.01961, allocations: 4 kB / 286.1 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.02001, allocations: 164 kB / 286.3 MB, free: 4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.02108, allocations: 1.841 MB / 288.1 MB, free: 2.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001588/0.02124, allocations: 28.09 kB / 288.1 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.02126, allocations: 16 kB / 288.2 MB, free: 1.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001709/0.02143, allocations: 203.8 kB / 288.4 MB, free: 1.793 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001765/0.0216, allocations: 236.8 kB / 288.6 MB, free: 1.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002532/0.02186, allocations: 233.3 kB / 288.8 MB, free: 1.234 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.824e-06/0.02186, allocations: 4.031 kB / 288.8 MB, free: 1.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0004567/0.02231, allocations: 305.2 kB / 289.1 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.02233, allocations: 4 kB / 289.1 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.02233, allocations: 4 kB / 289.1 MB, free: 0.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-06/0.02234, allocations: 4 kB / 289.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003144/0.02265, allocations: 107.8 kB / 289.2 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.02266, allocations: 12.14 kB / 289.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.02283, allocations: 31.98 kB / 289.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.02286, allocations: 8 kB / 289.3 MB, free: 0.7578 MB / 266.7 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.0001554/0.02301, allocations: 292 kB / 289.6 MB, free: 476 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.052e-05/0.02308, allocations: 47.77 kB / 289.6 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.278e-05/0.02314, allocations: 44.09 kB / 289.7 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.02315, allocations: 4 kB / 289.7 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.02315, allocations: 0 / 289.7 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.02316, allocations: 3.984 kB / 289.7 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008908/0.02405, allocations: 0.6758 MB / 290.3 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.02405, allocations: 7.922 kB / 290.3 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.02431, allocations: 67.97 kB / 290.4 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.02431, allocations: 4 kB / 290.4 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.02433, allocations: 8 kB / 290.4 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/0.02434, allocations: 11.86 kB / 290.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.02434, allocations: 4 kB / 290.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005083/0.02485, allocations: 471.4 kB / 290.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.24e-05/0.02495, allocations: 59.72 kB / 291 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.506e-05/0.02498, allocations: 11.94 kB / 291 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.02514, allocations: 23.92 kB / 291 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.02521, allocations: 23.95 kB / 291 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.02523, allocations: 12 kB / 291 MB, free: 14.91 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001822/0.02541, allocations: 247.1 kB / 291.3 MB, free: 14.67 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02541, allocations: 0 / 291.3 MB, free: 14.67 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005137/0.02593, allocations: 136 kB / 291.4 MB, free: 14.54 MB / 282.7 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.0001163/0.02604, allocations: 107.1 kB / 291.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000771/0.02681, allocations: 405.9 kB / 291.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.02682, allocations: 4.25 kB / 291.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.02696, allocations: 99.45 kB / 292 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005179/0.02748, allocations: 108.9 kB / 292.1 MB, free: 13.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.02911, allocations: 0.8833 MB / 293 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.778e-05/0.0292, allocations: 109.7 kB / 293.1 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.02941, allocations: 51.25 kB / 293.2 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.015e-05/0.0295, allocations: 32.5 kB / 293.2 MB, free: 12.68 MB / 282.7 MB Notification: Performance of SimCode: time 1.313e-06/0.0295, allocations: 0 / 293.2 MB, free: 12.68 MB / 282.7 MB Notification: Performance of Templates: time 0.009227/0.03873, allocations: 4.837 MB / 298 MB, free: 7.91 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.117269600974396]