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.001162/0.001162, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002053/0.003214, allocations: 449.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.001283/0.001283, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001613/0.002896, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.08/1.08, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0923/1.172, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.013e-06/2.013e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.649e-05/1.85e-05, allocations: 4.844 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.008718/0.008736, allocations: 3.104 MB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.01062, allocations: 1.024 MB / 248.6 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.01082, allocations: 19.88 kB / 248.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002528/0.01107, allocations: 91.05 kB / 248.8 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.0113, allocations: 111.1 kB / 248.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.01172, allocations: 235.4 kB / 249.1 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004669/0.01219, allocations: 0.5183 MB / 249.6 MB, free: 9.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.0124, allocations: 118.3 kB / 249.7 MB, free: 9.074 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003575/0.01275, allocations: 326.4 kB / 250 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.01293, allocations: 151.5 kB / 250.2 MB, free: 8.609 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.01298, allocations: 48 kB / 250.2 MB, free: 8.562 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.746e-05/0.01301, allocations: 40 kB / 250.3 MB, free: 8.523 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.824e-05/0.01308, allocations: 83.67 kB / 250.4 MB, free: 8.441 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.081e-05/0.01317, allocations: 111.7 kB / 250.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.01346, allocations: 310.8 kB / 250.8 MB, free: 8.027 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-05/0.01348, allocations: 3.984 kB / 250.8 MB, free: 8.023 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.01348, allocations: 0 / 250.8 MB, free: 8.023 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.01349, allocations: 0 / 250.8 MB, free: 8.023 MB / 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.0007681/0.01426, allocations: 0.7372 MB / 251.5 MB, free: 7.262 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.01429, allocations: 8.031 kB / 251.5 MB, free: 7.254 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.378e-05/0.01436, allocations: 68.83 kB / 251.6 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.01469, allocations: 277.4 kB / 251.9 MB, free: 6.887 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.01472, allocations: 25.38 kB / 251.9 MB, free: 6.863 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.01477, allocations: 40.38 kB / 251.9 MB, free: 6.824 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.01518, allocations: 394.7 kB / 252.3 MB, free: 6.391 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.0152, allocations: 4.141 kB / 252.3 MB, free: 6.387 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.01522, allocations: 16.38 kB / 252.3 MB, free: 6.371 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.01523, allocations: 15.94 kB / 252.3 MB, free: 6.355 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.0154, allocations: 121.7 kB / 252.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.01651, allocations: 1.097 MB / 253.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.01678, allocations: 214.7 kB / 253.8 MB, free: 4.871 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.049e-05/0.01684, allocations: 44.84 kB / 253.8 MB, free: 4.824 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.01687, allocations: 8 kB / 253.8 MB, free: 4.816 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.0169, allocations: 42.48 kB / 253.9 MB, free: 4.766 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.623e-06/0.0169, allocations: 0 / 253.9 MB, free: 4.766 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008372/0.01774, allocations: 0.6342 MB / 254.5 MB, free: 4.074 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.01777, allocations: 59.34 kB / 254.6 MB, free: 4.004 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005059/0.01828, allocations: 315.2 kB / 254.9 MB, free: 3.684 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.01829, allocations: 29.7 kB / 254.9 MB, free: 3.648 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.862e-05/0.01839, allocations: 217.1 kB / 255.1 MB, free: 3.43 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.843e-05/0.01845, allocations: 122.9 kB / 255.2 MB, free: 3.309 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.29e-05/0.01852, allocations: 78.16 kB / 255.3 MB, free: 3.227 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.317e-05/0.01861, allocations: 350.7 kB / 255.6 MB, free: 2.875 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.127e-05/0.01867, allocations: 53.66 kB / 255.7 MB, free: 2.816 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.01878, allocations: 177.8 kB / 255.9 MB, free: 2.598 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.01894, allocations: 201.6 kB / 256.1 MB, free: 2.371 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.01894, allocations: 0 / 256.1 MB, free: 2.371 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002109/0.01915, allocations: 224.3 kB / 256.3 MB, free: 2.145 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.01916, allocations: 8 kB / 256.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.01917, allocations: 0 / 256.3 MB, free: 2.137 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.01918, allocations: 7.938 kB / 256.3 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.01963, allocations: 203.1 kB / 256.5 MB, free: 1.934 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006177/0.02025, allocations: 1.239 MB / 257.7 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.02037, allocations: 28.11 kB / 257.8 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.02038, allocations: 16 kB / 257.8 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001052/0.02049, allocations: 138.7 kB / 257.9 MB, free: 436 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001036/0.02059, allocations: 181.8 kB / 258.1 MB, free: 212 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000155/0.02075, allocations: 186.5 kB / 258.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.212e-06/0.02075, allocations: 0 / 258.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001987/0.02095, allocations: 236.1 kB / 258.5 MB, free: 15.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/0.02096, allocations: 4 kB / 258.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.02096, allocations: 4 kB / 258.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.957e-06/0.02096, allocations: 4 kB / 258.5 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.02123, allocations: 140 kB / 258.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.02124, allocations: 8 kB / 258.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.02135, allocations: 27.92 kB / 258.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.02136, allocations: 8 kB / 258.7 MB, free: 15.57 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 (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 8.49e-05/0.02145, allocations: 208.1 kB / 258.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.02149, allocations: 31.97 kB / 258.9 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.621e-05/0.02153, allocations: 44.09 kB / 259 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.02153, allocations: 4 kB / 259 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.02154, allocations: 7.938 kB / 259 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.02154, allocations: 0 / 259 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004722/0.02201, allocations: 0.4934 MB / 259.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.02202, allocations: 4 kB / 259.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002149/0.02223, allocations: 87.83 kB / 259.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.081e-05/0.02229, allocations: 39.75 kB / 259.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.0223, allocations: 0 / 259.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.02231, allocations: 12.06 kB / 259.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.02231, allocations: 8 kB / 259.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.02232, allocations: 3.984 kB / 259.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.02258, allocations: 395.1 kB / 260 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.02261, allocations: 7.984 kB / 260 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.02271, allocations: 23.98 kB / 260 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.514e-05/0.02276, allocations: 28.19 kB / 260.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.02276, allocations: 4 kB / 260.1 MB, free: 14.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.318e-05/0.02284, allocations: 116.7 kB / 260.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02284, allocations: 4 kB / 260.2 MB, free: 13.99 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002589/0.0231, allocations: 140 kB / 260.3 MB, free: 13.85 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 8.985e-05/0.02319, allocations: 80.41 kB / 260.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004277/0.02361, allocations: 364.6 kB / 260.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/0.02363, allocations: 11.94 kB / 260.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.119e-05/0.0237, allocations: 72.7 kB / 260.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.02401, allocations: 132.4 kB / 261 MB, free: 13.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.02708, allocations: 0.8302 MB / 261.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.981e-05/0.02715, allocations: 113.6 kB / 261.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001453/0.0273, allocations: 51.23 kB / 262 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.02748, allocations: 141.3 kB / 262.1 MB, free: 12 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02748, allocations: 0 / 262.1 MB, free: 12 MB / 266.7 MB Notification: Performance of Templates: time 0.007627/0.03511, allocations: 5.762 MB / 267.9 MB, free: 6.34 MB / 266.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",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.693375072441995]