Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003516/0.003516, allocations: 95.86 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002934/0.002934, allocations: 149.1 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.135/2.135, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.293e-06/1.293e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.867e-05/2.997e-05, allocations: 6.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004921/0.004951, allocations: 3.016 MB / 270.3 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.007037, allocations: 0.9619 MB / 271.3 MB, free: 2.738 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002436/0.007281, allocations: 19.88 kB / 271.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003864/0.007667, allocations: 87.17 kB / 271.4 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.007947, allocations: 111 kB / 271.5 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006023/0.008549, allocations: 231.5 kB / 271.7 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006739/0.009223, allocations: 0.5377 MB / 272.3 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002812/0.009505, allocations: 117.7 kB / 272.4 MB, free: 1.641 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003731/0.009878, allocations: 275.4 kB / 272.6 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002776/0.01016, allocations: 151.5 kB / 272.8 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-05/0.01024, allocations: 40 kB / 272.8 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.201e-05/0.01032, allocations: 44 kB / 272.9 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.01047, allocations: 119.5 kB / 273 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.01067, allocations: 135.7 kB / 273.1 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006823/0.01135, allocations: 0.506 MB / 273.6 MB, free: 392 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.01135, allocations: 0 / 273.6 MB, free: 392 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01135, allocations: 0 / 273.6 MB, free: 392 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.01136, allocations: 0 / 273.6 MB, free: 392 kB / 250.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.001487/0.01285, allocations: 0.8073 MB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.01288, allocations: 8.031 kB / 274.4 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001437/0.01303, allocations: 80.61 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005439/0.01357, allocations: 328.2 kB / 274.8 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.01361, allocations: 33.31 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.849e-05/0.01369, allocations: 44.36 kB / 274.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008515/0.01454, allocations: 464.1 kB / 275.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.59e-05/0.01457, allocations: 7.938 kB / 275.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.0146, allocations: 12 kB / 275.4 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.01461, allocations: 8 kB / 275.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007645/0.01538, allocations: 307.8 kB / 275.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.01806, allocations: 1.725 MB / 277.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/0.0188, allocations: 275.2 kB / 277.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003302/0.01913, allocations: 135.6 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.01916, allocations: 7.938 kB / 277.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.0192, allocations: 45.31 kB / 277.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.372e-06/0.01921, allocations: 0 / 277.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.002702/0.02191, allocations: 1.108 MB / 279 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.02198, allocations: 85.05 kB / 279.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005402/0.02252, allocations: 434.7 kB / 279.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.02256, allocations: 33.7 kB / 279.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005002/0.02306, allocations: 311.2 kB / 279.8 MB, free: 9.852 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.02319, allocations: 127.1 kB / 280 MB, free: 9.727 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/0.02337, allocations: 95.8 kB / 280 MB, free: 9.625 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003145/0.02368, allocations: 0.5391 MB / 280.6 MB, free: 9.074 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.02404, allocations: 137.6 kB / 280.7 MB, free: 8.938 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/0.02454, allocations: 275.5 kB / 281 MB, free: 8.617 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007754/0.02531, allocations: 373.4 kB / 281.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.02532, allocations: 3.938 kB / 281.4 MB, free: 8.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009829/0.0263, allocations: 445 kB / 281.8 MB, free: 7.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.02632, allocations: 4 kB / 281.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.02633, allocations: 4 kB / 281.8 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.02635, allocations: 4 kB / 281.8 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008828/0.02723, allocations: 164 kB / 282 MB, free: 7.598 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002023/0.02925, allocations: 1.961 MB / 283.9 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002834/0.02954, allocations: 23.98 kB / 284 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.02957, allocations: 19.98 kB / 284 MB, free: 5.477 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004739/0.03004, allocations: 279.8 kB / 284.2 MB, free: 5.199 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000465/0.03051, allocations: 267.6 kB / 284.5 MB, free: 4.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007344/0.03124, allocations: 349.2 kB / 284.8 MB, free: 4.512 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.274e-06/0.03124, allocations: 4 kB / 284.8 MB, free: 4.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008976/0.03214, allocations: 425 kB / 285.3 MB, free: 4.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.03215, allocations: 4 kB / 285.3 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.03216, allocations: 7.984 kB / 285.3 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.111e-06/0.03217, allocations: 4 kB / 285.3 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.03264, allocations: 108.1 kB / 285.4 MB, free: 3.965 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.03265, allocations: 4 kB / 285.4 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.03291, allocations: 31.92 kB / 285.4 MB, free: 3.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.03293, allocations: 11.94 kB / 285.4 MB, free: 3.918 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.0002471/0.03318, allocations: 288 kB / 285.7 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.266e-05/0.03327, allocations: 47.77 kB / 285.8 MB, free: 3.582 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.03339, allocations: 48.08 kB / 285.8 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.0334, allocations: 4 kB / 285.8 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.0334, allocations: 0 / 285.8 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.03341, allocations: 7.938 kB / 285.8 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001942/0.03535, allocations: 0.8554 MB / 286.7 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.03535, allocations: 3.984 kB / 286.7 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000382/0.03574, allocations: 67.91 kB / 286.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/0.03575, allocations: 7.938 kB / 286.8 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.03577, allocations: 12.12 kB / 286.8 MB, free: 2.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.03578, allocations: 3.984 kB / 286.8 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.03578, allocations: 4 kB / 286.8 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.03706, allocations: 0.6552 MB / 287.4 MB, free: 1.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.0372, allocations: 59.67 kB / 287.5 MB, free: 1.762 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.237e-05/0.03725, allocations: 15.98 kB / 287.5 MB, free: 1.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.03749, allocations: 19.98 kB / 287.5 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.516e-05/0.03758, allocations: 31.89 kB / 287.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.0376, allocations: 11.94 kB / 287.6 MB, free: 1.684 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003142/0.03791, allocations: 283.1 kB / 287.8 MB, free: 1.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03791, allocations: 0 / 287.8 MB, free: 1.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005618/0.03848, allocations: 132 kB / 288 MB, free: 1.281 MB / 266.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.0001525/0.03863, allocations: 111.1 kB / 288.1 MB, free: 1.164 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.04024, allocations: 0.5919 MB / 288.7 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.04024, allocations: 4 kB / 288.7 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.0406, allocations: 155.5 kB / 288.8 MB, free: 412 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007131/0.04132, allocations: 115.6 kB / 288.9 MB, free: 300 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.04324, allocations: 0.9263 MB / 289.9 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.04349, allocations: 212.2 kB / 290.1 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002349/0.04372, allocations: 55.25 kB / 290.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.04383, allocations: 36.5 kB / 290.2 MB, free: 15 MB / 282.7 MB Notification: Performance of SimCode: time 7.51e-07/0.04383, allocations: 0 / 290.2 MB, free: 15 MB / 282.7 MB Notification: Performance of Templates: time 0.01142/0.05526, allocations: 4.862 MB / 295 MB, free: 10.22 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 5.236275564995594]