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.0009054/0.0009054, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0009264/0.0009264, allocations: 145.8 kB / 24.89 MB, free: 8.781 MB / 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 0.9342/0.9342, allocations: 173.4 MB / 201.5 MB, free: 8.238 MB / 186.7 MB " [Timeout remaining time 179] 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.162e-06/1.162e-06, allocations: 0 / 268.4 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.235e-05/1.352e-05, allocations: 2.312 kB / 268.5 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002821/0.002835, allocations: 3.021 MB / 271.5 MB, free: 6.785 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.004024, allocations: 0.9991 MB / 272.5 MB, free: 5.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.00418, allocations: 19.81 kB / 272.5 MB, free: 5.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002671/0.004447, allocations: 83.23 kB / 272.6 MB, free: 5.688 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.004621, allocations: 106.6 kB / 272.7 MB, free: 5.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.004975, allocations: 240.7 kB / 272.9 MB, free: 5.352 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006015/0.005576, allocations: 0.53 MB / 273.4 MB, free: 4.816 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.005748, allocations: 118.3 kB / 273.6 MB, free: 4.695 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.00596, allocations: 279.9 kB / 273.8 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.006118, allocations: 159.5 kB / 274 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.433e-05/0.006163, allocations: 40.59 kB / 274 MB, free: 4.227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.677e-05/0.006199, allocations: 45.56 kB / 274.1 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.693e-05/0.006276, allocations: 111.5 kB / 274.2 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.061e-05/0.006367, allocations: 139.7 kB / 274.3 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.006642, allocations: 338.6 kB / 274.6 MB, free: 3.605 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.006644, allocations: 4.812 kB / 274.6 MB, free: 3.602 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.006645, allocations: 0 / 274.6 MB, free: 3.602 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.00665, allocations: 4 kB / 274.7 MB, free: 3.598 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.0006301/0.00728, allocations: 0.6521 MB / 275.3 MB, free: 2.918 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.007308, allocations: 8.031 kB / 275.3 MB, free: 2.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.488e-05/0.007372, allocations: 60.89 kB / 275.4 MB, free: 2.852 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.007638, allocations: 277.5 kB / 275.6 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.007664, allocations: 33.38 kB / 275.7 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.007709, allocations: 44.31 kB / 275.7 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.008051, allocations: 363.7 kB / 276.1 MB, free: 2.09 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.008066, allocations: 7.984 kB / 276.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.008086, allocations: 16 kB / 276.1 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.008095, allocations: 12 kB / 276.1 MB, free: 2.055 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.008248, allocations: 117.6 kB / 276.2 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009716/0.00922, allocations: 1.108 MB / 277.3 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.009469, allocations: 200.3 kB / 277.5 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.891e-05/0.009528, allocations: 45.34 kB / 277.6 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.009547, allocations: 4 kB / 277.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.009567, allocations: 38.56 kB / 277.6 MB, free: 476 kB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.423e-06/0.009569, allocations: 0 / 277.6 MB, free: 476 kB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0007833/0.01035, allocations: 0.6388 MB / 278.3 MB, free: 15.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.01039, allocations: 81.11 kB / 278.3 MB, free: 15.67 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.01056, allocations: 315.2 kB / 278.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.01057, allocations: 33.64 kB / 278.7 MB, free: 15.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.01066, allocations: 209.2 kB / 278.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.816e-05/0.01071, allocations: 126.9 kB / 279 MB, free: 14.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.27e-05/0.01079, allocations: 74.16 kB / 279.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.438e-05/0.01087, allocations: 354.7 kB / 279.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.318e-05/0.01093, allocations: 49.67 kB / 279.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.01104, allocations: 155.2 kB / 279.6 MB, free: 14.31 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.0112, allocations: 202.1 kB / 279.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.0112, allocations: 0 / 279.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004591/0.01166, allocations: 224.1 kB / 280 MB, free: 13.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.01167, allocations: 4 kB / 280 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.01168, allocations: 7.984 kB / 280 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.01169, allocations: 4 kB / 280.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.01202, allocations: 164 kB / 280.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005699/0.01259, allocations: 1.235 MB / 281.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.01271, allocations: 32.11 kB / 281.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.01272, allocations: 15.94 kB / 281.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001004/0.01282, allocations: 134.8 kB / 281.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.701e-05/0.01292, allocations: 147.2 kB / 281.8 MB, free: 12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001419/0.01306, allocations: 198.5 kB / 282 MB, free: 11.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.302e-06/0.01306, allocations: 4.031 kB / 282 MB, free: 11.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001885/0.01325, allocations: 212.2 kB / 282.2 MB, free: 11.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.494e-06/0.01326, allocations: 8 kB / 282.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.01326, allocations: 3.984 kB / 282.2 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-06/0.01327, allocations: 4 kB / 282.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001972/0.01346, allocations: 111.8 kB / 282.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.01347, allocations: 4.219 kB / 282.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.425e-05/0.01356, allocations: 27.98 kB / 282.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.01357, allocations: 8 kB / 282.3 MB, free: 11.39 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.804e-05/0.01366, allocations: 208.1 kB / 282.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.0137, allocations: 31.97 kB / 282.6 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.291e-05/0.01374, allocations: 48.08 kB / 282.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.01374, allocations: 11.92 kB / 282.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.01374, allocations: 0 / 282.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.01375, allocations: 0 / 282.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004538/0.0142, allocations: 0.4941 MB / 283.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.0142, allocations: 4 kB / 283.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.01437, allocations: 75.89 kB / 283.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.01437, allocations: 0 / 283.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/0.01439, allocations: 8 kB / 283.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.01439, allocations: 4 kB / 283.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.01439, allocations: 3.984 kB / 283.2 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002603/0.01465, allocations: 395.9 kB / 283.6 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.599e-05/0.01471, allocations: 35.72 kB / 283.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.01473, allocations: 11.98 kB / 283.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.01483, allocations: 19.98 kB / 283.7 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.01488, allocations: 28.12 kB / 283.7 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.01489, allocations: 8 kB / 283.7 MB, free: 9.957 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.77e-05/0.01496, allocations: 120.7 kB / 283.8 MB, free: 9.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01496, allocations: 0 / 283.8 MB, free: 9.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002586/0.01522, allocations: 132 kB / 284 MB, free: 9.711 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 7.406e-05/0.0153, allocations: 96.3 kB / 284 MB, free: 9.609 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004126/0.01571, allocations: 344.6 kB / 284.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.01572, allocations: 4.188 kB / 284.4 MB, free: 9.262 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.908e-05/0.01579, allocations: 88.64 kB / 284.5 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.01611, allocations: 109.4 kB / 284.6 MB, free: 9.074 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.01719, allocations: 0.8038 MB / 285.4 MB, free: 8.227 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.725e-05/0.01725, allocations: 121.5 kB / 285.5 MB, free: 8.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.01738, allocations: 47.27 kB / 285.6 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.01756, allocations: 131.3 kB / 285.7 MB, free: 7.914 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01756, allocations: 0 / 285.7 MB, free: 7.914 MB / 266.7 MB Notification: Performance of Templates: time 0.007505/0.02507, allocations: 5.219 MB / 290.9 MB, free: 2.789 MB / 266.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","",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.763428470119834]