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.001464/0.001464, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00177/0.003234, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001197/0.001197, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001604/0.002802, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 1.231/1.231, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1622/1.393, allocations: 52.49 MB / 238.5 MB, free: 7.609 MB / 234.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.623e-06/1.623e-06, allocations: 0 / 239.7 MB, free: 6.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.811e-05, allocations: 2.312 kB / 239.7 MB, free: 6.336 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004116/0.004144, allocations: 3.083 MB / 242.8 MB, free: 3.254 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.005716, allocations: 0.9907 MB / 243.8 MB, free: 2.262 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002088/0.005925, allocations: 22.41 kB / 243.8 MB, free: 2.242 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.006187, allocations: 87.12 kB / 243.9 MB, free: 2.156 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.006394, allocations: 112.5 kB / 244 MB, free: 2.047 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004359/0.00683, allocations: 232.4 kB / 244.3 MB, free: 1.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/0.007278, allocations: 0.5261 MB / 244.8 MB, free: 1.289 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.007474, allocations: 119.4 kB / 244.9 MB, free: 1.164 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003034/0.007778, allocations: 330.3 kB / 245.2 MB, free: 0.8398 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.007967, allocations: 154.6 kB / 245.4 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.008017, allocations: 44 kB / 245.4 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.323e-05/0.008061, allocations: 40 kB / 245.5 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.406e-05/0.008135, allocations: 87.67 kB / 245.5 MB, free: 0.5234 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.147e-05/0.008226, allocations: 111.7 kB / 245.7 MB, free: 424 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.00851, allocations: 302.8 kB / 246 MB, free: 120 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.008521, allocations: 3.984 kB / 246 MB, free: 116 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.008522, allocations: 0 / 246 MB, free: 116 kB / 234.7 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.008535, allocations: 0 / 246 MB, free: 116 kB / 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.0007706/0.009305, allocations: 0.7386 MB / 246.7 MB, free: 15.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.009336, allocations: 12.03 kB / 246.7 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.922e-05/0.009406, allocations: 60.89 kB / 246.8 MB, free: 15.29 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002814/0.009687, allocations: 274.4 kB / 247 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.009713, allocations: 30.28 kB / 247.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.009756, allocations: 40.33 kB / 247.1 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.01011, allocations: 373.4 kB / 247.5 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.01012, allocations: 0 / 247.5 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.039e-05/0.01014, allocations: 16 kB / 247.5 MB, free: 14.52 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.01015, allocations: 12 kB / 247.5 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.01032, allocations: 119 kB / 247.6 MB, free: 14.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.01139, allocations: 1.112 MB / 248.7 MB, free: 13.23 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.01164, allocations: 204.8 kB / 248.9 MB, free: 13.01 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.632e-05/0.0117, allocations: 53.34 kB / 249 MB, free: 12.96 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.01172, allocations: 8.578 kB / 249 MB, free: 12.95 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.01174, allocations: 38.56 kB / 249 MB, free: 12.9 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.553e-06/0.01174, allocations: 0.5 kB / 249 MB, free: 12.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0007941/0.01253, allocations: 0.6445 MB / 249.7 MB, free: 12.2 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/0.01256, allocations: 63.41 kB / 249.7 MB, free: 12.13 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.01273, allocations: 311.3 kB / 250 MB, free: 11.81 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.01275, allocations: 29.7 kB / 250.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.953e-05/0.01284, allocations: 213.1 kB / 250.3 MB, free: 11.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.411e-05/0.0129, allocations: 126.9 kB / 250.4 MB, free: 11.44 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.01298, allocations: 74.16 kB / 250.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.158e-05/0.01307, allocations: 350.7 kB / 250.8 MB, free: 11.01 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.534e-05/0.01314, allocations: 53.66 kB / 250.9 MB, free: 10.95 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.01324, allocations: 151.2 kB / 251 MB, free: 10.77 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.01341, allocations: 201.7 kB / 251.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.01341, allocations: 4 kB / 251.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002202/0.01363, allocations: 236 kB / 251.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.01364, allocations: 8.219 kB / 251.4 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01365, allocations: 7.984 kB / 251.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.01366, allocations: 4 kB / 251.5 MB, free: 10.28 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.01409, allocations: 187.8 kB / 251.6 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005774/0.01467, allocations: 1.25 MB / 252.9 MB, free: 8.766 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.01479, allocations: 27.97 kB / 252.9 MB, free: 8.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.0148, allocations: 8 kB / 252.9 MB, free: 8.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000101/0.0149, allocations: 134.9 kB / 253.1 MB, free: 8.594 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.105e-05/0.01499, allocations: 155.2 kB / 253.2 MB, free: 8.41 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001447/0.01514, allocations: 194.5 kB / 253.4 MB, free: 8.191 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.213e-06/0.01514, allocations: 0 / 253.4 MB, free: 8.191 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0001923/0.01533, allocations: 228.2 kB / 253.6 MB, free: 7.961 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.55e-06/0.01534, allocations: 4 kB / 253.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.01534, allocations: 4 kB / 253.6 MB, free: 7.953 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.105e-06/0.01534, allocations: 4 kB / 253.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.01561, allocations: 142.8 kB / 253.8 MB, free: 7.812 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.01561, allocations: 8.156 kB / 253.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.01572, allocations: 35.98 kB / 253.8 MB, free: 7.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.01573, allocations: 12 kB / 253.8 MB, free: 7.758 MB / 250.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.004e-05/0.01582, allocations: 204.1 kB / 254 MB, free: 7.551 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.01585, allocations: 31.97 kB / 254.1 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.0159, allocations: 48.03 kB / 254.1 MB, free: 7.469 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.0159, allocations: 0 / 254.1 MB, free: 7.469 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-06/0.0159, allocations: 4 kB / 254.1 MB, free: 7.465 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.01591, allocations: 3.984 kB / 254.1 MB, free: 7.461 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004625/0.01637, allocations: 0.503 MB / 254.6 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01637, allocations: 0 / 254.6 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.01657, allocations: 85.95 kB / 254.7 MB, free: 6.84 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.167e-05/0.01663, allocations: 39.75 kB / 254.7 MB, free: 6.801 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.01664, allocations: 4 kB / 254.7 MB, free: 6.797 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.01665, allocations: 4 kB / 254.8 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.01665, allocations: 7.938 kB / 254.8 MB, free: 6.785 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01665, allocations: 4.125 kB / 254.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.01692, allocations: 383 kB / 255.1 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.01695, allocations: 15.98 kB / 255.2 MB, free: 6.363 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.01705, allocations: 19.98 kB / 255.2 MB, free: 6.344 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.0171, allocations: 28.12 kB / 255.2 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-06/0.0171, allocations: 4 kB / 255.2 MB, free: 6.312 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.737e-05/0.01718, allocations: 120.7 kB / 255.3 MB, free: 6.195 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01718, allocations: 0 / 255.3 MB, free: 6.195 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002603/0.01744, allocations: 135.9 kB / 255.5 MB, free: 6.062 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 8.562e-05/0.01753, allocations: 96.28 kB / 255.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000419/0.01795, allocations: 361.3 kB / 255.9 MB, free: 5.598 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/0.01796, allocations: 16.08 kB / 255.9 MB, free: 5.582 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.701e-05/0.01806, allocations: 90.8 kB / 256 MB, free: 5.492 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.0186, allocations: 0.9828 MB / 257 MB, free: 4.312 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.02128, allocations: 0.8152 MB / 257.8 MB, free: 3.457 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.727e-05/0.02134, allocations: 113.7 kB / 257.9 MB, free: 3.324 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.02148, allocations: 51.25 kB / 258 MB, free: 3.27 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.02167, allocations: 137.3 kB / 258.1 MB, free: 3.133 MB / 250.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02167, allocations: 4 kB / 258.1 MB, free: 3.129 MB / 250.7 MB Notification: Performance of Templates: time 0.00707/0.02874, allocations: 5.679 MB / 263.8 MB, free: 13.56 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8760307505726814]