Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00107/0.00107, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001666/0.002736, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001182/0.001182, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001571/0.002754, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.877/0.877, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1599/1.037, allocations: 49.48 MB / 220.6 MB, free: 1.449 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 221.8 MB, free: 184 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.988e-05/2.106e-05, allocations: 2.312 kB / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004822/0.004843, allocations: 3.099 MB / 224.9 MB, free: 13.05 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.006675, allocations: 1.029 MB / 226 MB, free: 12.01 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002739/0.006949, allocations: 19.88 kB / 226 MB, free: 11.99 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002604/0.00721, allocations: 91.09 kB / 226.1 MB, free: 11.9 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003291/0.0105, allocations: 115 kB / 226.2 MB, free: 11.79 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004977/0.011, allocations: 227.5 kB / 226.4 MB, free: 11.56 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006113/0.01161, allocations: 0.5261 MB / 226.9 MB, free: 11.04 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.01187, allocations: 130.2 kB / 227.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003996/0.01227, allocations: 326.4 kB / 227.4 MB, free: 10.59 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.01249, allocations: 159.5 kB / 227.5 MB, free: 10.43 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.956e-05/0.01254, allocations: 40 kB / 227.6 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.488e-05/0.0126, allocations: 44 kB / 227.6 MB, free: 10.35 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.658e-05/0.01269, allocations: 79.62 kB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.01281, allocations: 119.7 kB / 227.8 MB, free: 10.16 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.01322, allocations: 310.7 kB / 228.1 MB, free: 9.852 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.289e-05/0.01323, allocations: 4 kB / 228.1 MB, free: 9.848 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01323, allocations: 0 / 228.1 MB, free: 9.848 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.01325, allocations: 0 / 228.1 MB, free: 9.848 MB / 234.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.0008789/0.01413, allocations: 0.7411 MB / 228.9 MB, free: 9.082 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.73e-05/0.01415, allocations: 12.03 kB / 228.9 MB, free: 9.07 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.01422, allocations: 60.89 kB / 228.9 MB, free: 9.012 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.01452, allocations: 285.4 kB / 229.2 MB, free: 8.703 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.808e-05/0.01455, allocations: 29.38 kB / 229.2 MB, free: 8.672 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.01459, allocations: 44.31 kB / 229.3 MB, free: 8.629 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.01493, allocations: 364.1 kB / 229.6 MB, free: 8.234 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.01495, allocations: 4.188 kB / 229.6 MB, free: 8.23 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.01496, allocations: 16.38 kB / 229.7 MB, free: 8.215 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.01497, allocations: 15.94 kB / 229.7 MB, free: 8.199 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001417/0.01512, allocations: 117.7 kB / 229.8 MB, free: 8.082 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009959/0.01611, allocations: 1.108 MB / 230.9 MB, free: 6.926 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.01745, allocations: 208.2 kB / 231.1 MB, free: 6.711 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.257e-05/0.01752, allocations: 44.84 kB / 231.1 MB, free: 6.664 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.01755, allocations: 4 kB / 231.1 MB, free: 6.66 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.01757, allocations: 42.5 kB / 231.2 MB, free: 6.609 MB / 234.7 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.01757, allocations: 0 / 231.2 MB, free: 6.609 MB / 234.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008316/0.01841, allocations: 0.6345 MB / 231.8 MB, free: 5.922 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.922e-05/0.01844, allocations: 63.34 kB / 231.9 MB, free: 5.848 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.01861, allocations: 311.2 kB / 232.2 MB, free: 5.535 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.01862, allocations: 33.7 kB / 232.2 MB, free: 5.496 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.01871, allocations: 213.1 kB / 232.4 MB, free: 5.281 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/0.01876, allocations: 119 kB / 232.5 MB, free: 5.164 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/0.01884, allocations: 82.16 kB / 232.6 MB, free: 5.078 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.671e-05/0.01892, allocations: 350.7 kB / 233 MB, free: 4.727 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.314e-05/0.01899, allocations: 49.67 kB / 233 MB, free: 4.672 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.976e-05/0.01909, allocations: 155.2 kB / 233.2 MB, free: 4.484 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.01924, allocations: 197.1 kB / 233.4 MB, free: 4.262 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01925, allocations: 3.938 kB / 233.4 MB, free: 4.258 MB / 234.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002177/0.01946, allocations: 224.4 kB / 233.6 MB, free: 4.031 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.01948, allocations: 8 kB / 233.6 MB, free: 4.023 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01948, allocations: 0 / 233.6 MB, free: 4.023 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.0195, allocations: 7.938 kB / 233.6 MB, free: 4.016 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000439/0.01993, allocations: 199.9 kB / 233.8 MB, free: 3.82 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006797/0.02061, allocations: 1.246 MB / 235 MB, free: 2.488 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.02076, allocations: 27.98 kB / 235.1 MB, free: 2.461 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.02077, allocations: 8 kB / 235.1 MB, free: 2.453 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001153/0.02089, allocations: 138.7 kB / 235.2 MB, free: 2.312 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000101/0.02099, allocations: 155.1 kB / 235.4 MB, free: 2.125 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001542/0.02114, allocations: 190.5 kB / 235.5 MB, free: 1.91 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.02114, allocations: 0 / 235.5 MB, free: 1.91 MB / 234.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001999/0.02134, allocations: 224.3 kB / 235.8 MB, free: 1.684 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-06/0.02135, allocations: 11.98 kB / 235.8 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-06/0.02136, allocations: 0 / 235.8 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-06/0.02136, allocations: 8.219 kB / 235.8 MB, free: 1.664 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.02164, allocations: 147.7 kB / 235.9 MB, free: 1.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.02164, allocations: 4 kB / 235.9 MB, free: 1.516 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.02174, allocations: 31.86 kB / 236 MB, free: 1.484 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.02175, allocations: 12 kB / 236 MB, free: 1.473 MB / 234.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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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 9.084e-05/0.02185, allocations: 208.1 kB / 236.2 MB, free: 1.262 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.02189, allocations: 31.97 kB / 236.2 MB, free: 1.23 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.726e-05/0.02193, allocations: 44.14 kB / 236.3 MB, free: 1.184 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.02194, allocations: 4 kB / 236.3 MB, free: 1.18 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.02194, allocations: 7.922 kB / 236.3 MB, free: 1.172 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.02194, allocations: 0 / 236.3 MB, free: 1.172 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005084/0.02245, allocations: 0.4895 MB / 236.8 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.02245, allocations: 0 / 236.8 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.02267, allocations: 99.94 kB / 236.9 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/0.02273, allocations: 31.77 kB / 236.9 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.02273, allocations: 4 kB / 236.9 MB, free: 0.5156 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.02274, allocations: 7.984 kB / 236.9 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.02275, allocations: 4 kB / 236.9 MB, free: 0.5039 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.02275, allocations: 3.938 kB / 236.9 MB, free: 0.5 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.02303, allocations: 390.4 kB / 237.3 MB, free: 92 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.02306, allocations: 8 kB / 237.3 MB, free: 84 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.02316, allocations: 23.98 kB / 237.3 MB, free: 60 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.143e-05/0.02322, allocations: 27.89 kB / 237.3 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.02323, allocations: 11.98 kB / 237.4 MB, free: 20 kB / 234.7 MB Notification: Performance of sorting global known variables: time 9.391e-05/0.02332, allocations: 120.7 kB / 237.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of sort global known variables: time 2e-08/0.02332, allocations: 0 / 237.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002978/0.02362, allocations: 136 kB / 237.6 MB, free: 15.77 MB / 250.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.0001022/0.02372, allocations: 84.36 kB / 237.7 MB, free: 15.68 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004845/0.02421, allocations: 344.3 kB / 238 MB, free: 15.33 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.818e-05/0.02422, allocations: 4 kB / 238 MB, free: 15.33 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.627e-05/0.02431, allocations: 90.5 kB / 238.1 MB, free: 15.24 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.02466, allocations: 146.7 kB / 238.3 MB, free: 15.1 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002813/0.02747, allocations: 0.8291 MB / 239.1 MB, free: 14.23 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.694e-05/0.02754, allocations: 113.7 kB / 239.2 MB, free: 14.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000162/0.0277, allocations: 43.27 kB / 239.2 MB, free: 14.05 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/0.02789, allocations: 145.3 kB / 239.4 MB, free: 13.91 MB / 250.7 MB Notification: Performance of SimCode: time 1.312e-06/0.02789, allocations: 3.938 kB / 239.4 MB, free: 13.91 MB / 250.7 MB Notification: Performance of Templates: time 0.00766/0.03555, allocations: 5.789 MB / 245.2 MB, free: 8.148 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.6317322039976716]