Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008935/0.0008935, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004408/0.004408, allocations: 163.9 kB / 24.7 MB, free: 9.406 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8537/0.8537, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.735e-06/2.735e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.995e-05/4.269e-05, allocations: 2.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004153/0.004196, allocations: 2.932 MB / 328.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.005958, allocations: 0.9775 MB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.006181, allocations: 19.88 kB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003847/0.006566, allocations: 87.17 kB / 329.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.006771, allocations: 107 kB / 329.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.00728, allocations: 236.7 kB / 330.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.007735, allocations: 0.53 MB / 330.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.007995, allocations: 113.7 kB / 330.8 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.008257, allocations: 287.2 kB / 331.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.008454, allocations: 151.5 kB / 331.2 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.078e-05/0.008505, allocations: 40 kB / 331.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.146e-05/0.008546, allocations: 44 kB / 331.3 MB, free: 9.902 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.008649, allocations: 107.6 kB / 331.4 MB, free: 9.797 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.008754, allocations: 135.7 kB / 331.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004923/0.009246, allocations: 0.5099 MB / 332.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.00925, allocations: 0 / 332.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.009252, allocations: 0 / 332.1 MB, free: 9.152 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.00926, allocations: 0 / 332.1 MB, free: 9.152 MB / 298.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.0009752/0.01024, allocations: 0.7066 MB / 332.8 MB, free: 8.414 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.01028, allocations: 8.031 kB / 332.8 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.683e-05/0.01036, allocations: 56.61 kB / 332.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004723/0.01083, allocations: 301.5 kB / 333.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.01086, allocations: 25.38 kB / 333.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.157e-05/0.01092, allocations: 44.36 kB / 333.2 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006296/0.01155, allocations: 0.4953 MB / 333.7 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.01157, allocations: 4.141 kB / 333.7 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.0116, allocations: 16.38 kB / 333.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.01161, allocations: 15.88 kB / 333.7 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005709/0.01218, allocations: 375.6 kB / 334.1 MB, free: 7.023 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.01361, allocations: 1.356 MB / 335.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005486/0.01416, allocations: 298.6 kB / 335.7 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.01439, allocations: 148.8 kB / 335.9 MB, free: 5.148 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.01442, allocations: 7.984 kB / 335.9 MB, free: 5.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.01445, allocations: 42.5 kB / 335.9 MB, free: 5.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.01445, allocations: 3.938 kB / 335.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001957/0.01641, allocations: 1.24 MB / 337.2 MB, free: 3.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.01647, allocations: 106.8 kB / 337.3 MB, free: 3.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.01674, allocations: 341.6 kB / 337.6 MB, free: 3.316 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.01676, allocations: 29.7 kB / 337.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.0169, allocations: 248.5 kB / 337.9 MB, free: 3.035 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.445e-05/0.01696, allocations: 119 kB / 338 MB, free: 2.918 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.652e-05/0.01705, allocations: 78.14 kB / 338.1 MB, free: 2.836 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.01716, allocations: 350.8 kB / 338.4 MB, free: 2.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.01742, allocations: 170.7 kB / 338.6 MB, free: 2.316 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003195/0.01774, allocations: 313.6 kB / 338.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/0.01827, allocations: 391.9 kB / 339.3 MB, free: 1.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.01827, allocations: 8 kB / 339.3 MB, free: 1.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006439/0.01891, allocations: 485 kB / 339.8 MB, free: 1.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.01894, allocations: 11.94 kB / 339.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.01895, allocations: 0 / 339.8 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.01897, allocations: 8 kB / 339.8 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004707/0.01944, allocations: 207.9 kB / 340 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.02057, allocations: 1.446 MB / 341.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.02075, allocations: 44.08 kB / 341.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.02077, allocations: 16 kB / 341.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000334/0.0211, allocations: 277 kB / 341.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003287/0.02143, allocations: 301.7 kB / 342.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004901/0.02192, allocations: 375.7 kB / 342.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.02192, allocations: 0 / 342.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005927/0.02252, allocations: 469 kB / 342.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.02253, allocations: 4 kB / 342.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.02253, allocations: 4 kB / 342.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.05e-06/0.02254, allocations: 4 kB / 342.9 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.02279, allocations: 115.8 kB / 343 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.0228, allocations: 7.938 kB / 343 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/0.02294, allocations: 40.12 kB / 343 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.708e-05/0.02296, allocations: 19.94 kB / 343.1 MB, free: 13.57 MB / 314.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.00015/0.02311, allocations: 204.1 kB / 343.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.02316, allocations: 39.75 kB / 343.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.572e-05/0.02322, allocations: 44.09 kB / 343.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.02323, allocations: 4 kB / 343.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.319e-06/0.02323, allocations: 0 / 343.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.02324, allocations: 0 / 343.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.02431, allocations: 0.7912 MB / 344.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.02432, allocations: 4 kB / 344.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.02454, allocations: 88 kB / 344.2 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.02455, allocations: 7.984 kB / 344.2 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.02456, allocations: 8 kB / 344.2 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.02457, allocations: 3.938 kB / 344.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.02457, allocations: 7.938 kB / 344.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008114/0.02538, allocations: 0.6635 MB / 344.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.67e-05/0.02547, allocations: 59.73 kB / 345 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.792e-05/0.0255, allocations: 8 kB / 345 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.02564, allocations: 44.02 kB / 345 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.452e-05/0.02571, allocations: 31.89 kB / 345.1 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.02573, allocations: 8 kB / 345.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001749/0.0259, allocations: 239.2 kB / 345.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0259, allocations: 0 / 345.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003735/0.02627, allocations: 132 kB / 345.4 MB, free: 11.12 MB / 314.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.0001214/0.0264, allocations: 107.2 kB / 345.5 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.02748, allocations: 0.653 MB / 346.2 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.02748, allocations: 0 / 346.2 MB, free: 10.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.02773, allocations: 179.8 kB / 346.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.02822, allocations: 101.4 kB / 346.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.02956, allocations: 0.9423 MB / 347.4 MB, free: 9.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.02972, allocations: 212.2 kB / 347.6 MB, free: 8.859 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.181e-05/0.02981, allocations: 36.5 kB / 347.7 MB, free: 8.824 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.02981, allocations: 0 / 347.7 MB, free: 8.824 MB / 314.7 MB Notification: Performance of Templates: time 0.006417/0.03623, allocations: 6.071 MB / 353.7 MB, free: 2.758 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.59380713943392]