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.001393/0.001393, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001532/0.001532, allocations: 161.6 kB / 24.27 MB, free: 172 kB / 18.57 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.48/1.48, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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 1.393e-06/1.393e-06, allocations: 0 / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.414e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004971/0.004996, allocations: 2.921 MB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.007032, allocations: 0.962 MB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002029/0.007235, allocations: 19.88 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.00759, allocations: 91.16 kB / 276.3 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.007886, allocations: 111 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006176/0.008503, allocations: 235.5 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006726/0.009176, allocations: 0.53 MB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.00943, allocations: 109.7 kB / 277.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003984/0.009828, allocations: 295.2 kB / 277.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.01008, allocations: 155.5 kB / 277.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.567e-05/0.01015, allocations: 40 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.01022, allocations: 40 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.01036, allocations: 107.6 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.01054, allocations: 139.6 kB / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006506/0.01119, allocations: 0.506 MB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.01119, allocations: 0 / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.01119, allocations: 0 / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.0112, allocations: 0 / 278.5 MB, free: 11.55 MB / 266.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.001434/0.01263, allocations: 0.6999 MB / 279.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.01266, allocations: 8.031 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.01282, allocations: 84.61 kB / 279.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005778/0.0134, allocations: 317.4 kB / 279.6 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.01344, allocations: 29.38 kB / 279.7 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-05/0.01352, allocations: 40.38 kB / 279.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.01457, allocations: 0.4953 MB / 280.2 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.0146, allocations: 4.141 kB / 280.2 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.367e-05/0.01464, allocations: 16.38 kB / 280.2 MB, free: 9.773 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.01465, allocations: 11.94 kB / 280.2 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.01573, allocations: 379.6 kB / 280.6 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002434/0.01817, allocations: 1.353 MB / 282 MB, free: 7.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009089/0.01907, allocations: 310.8 kB / 282.3 MB, free: 7.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004857/0.01956, allocations: 156.8 kB / 282.4 MB, free: 7.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.01959, allocations: 4 kB / 282.4 MB, free: 7.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.01962, allocations: 38.5 kB / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.533e-06/0.01962, allocations: 0 / 282.5 MB, free: 7.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.003493/0.02311, allocations: 1.239 MB / 283.7 MB, free: 6.156 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.668e-05/0.0232, allocations: 114.8 kB / 283.8 MB, free: 6.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004414/0.02364, allocations: 337.6 kB / 284.1 MB, free: 5.676 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.41e-05/0.02369, allocations: 45.69 kB / 284.2 MB, free: 5.625 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.0239, allocations: 240.5 kB / 284.4 MB, free: 5.387 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.02402, allocations: 119 kB / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.02417, allocations: 86.14 kB / 284.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/0.02437, allocations: 346.8 kB / 285 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005135/0.02488, allocations: 174.7 kB / 285.1 MB, free: 4.656 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006362/0.02552, allocations: 309.7 kB / 285.4 MB, free: 4.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.02652, allocations: 396 kB / 285.8 MB, free: 3.891 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.02652, allocations: 0 / 285.8 MB, free: 3.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001226/0.02775, allocations: 0.497 MB / 286.3 MB, free: 3.387 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.02777, allocations: 7.938 kB / 286.3 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.02778, allocations: 11.98 kB / 286.3 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.02781, allocations: 4.219 kB / 286.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009362/0.02874, allocations: 207.7 kB / 286.5 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.03068, allocations: 1.446 MB / 288 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003423/0.03103, allocations: 35.98 kB / 288 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.436e-05/0.03106, allocations: 16 kB / 288 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000599/0.03166, allocations: 281 kB / 288.3 MB, free: 1.285 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007913/0.03245, allocations: 289.7 kB / 288.6 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008926/0.03334, allocations: 371.8 kB / 289 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.03335, allocations: 0 / 289 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001147/0.03449, allocations: 489 kB / 289.4 MB, free: 88 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/0.0345, allocations: 4 kB / 289.4 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.03451, allocations: 4 kB / 289.4 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.005e-06/0.03452, allocations: 12.2 kB / 289.5 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005343/0.03505, allocations: 115.8 kB / 289.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.03506, allocations: 4 kB / 289.6 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.0354, allocations: 39.95 kB / 289.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/0.03543, allocations: 16 kB / 289.6 MB, free: 15.89 MB / 282.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.0001794/0.03561, allocations: 204.1 kB / 289.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.373e-05/0.0357, allocations: 47.77 kB / 289.9 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.03581, allocations: 48.09 kB / 289.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.03581, allocations: 4 kB / 289.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.03582, allocations: 0 / 289.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.03582, allocations: 3.984 kB / 289.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001787/0.03761, allocations: 0.7942 MB / 290.7 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.03761, allocations: 0 / 290.7 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.03806, allocations: 87.88 kB / 290.8 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.03806, allocations: 0 / 290.8 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.03809, allocations: 8 kB / 290.8 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.686e-06/0.0381, allocations: 12.06 kB / 290.8 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.0381, allocations: 4 kB / 290.8 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.03977, allocations: 0.687 MB / 291.5 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.03991, allocations: 59.78 kB / 291.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.744e-05/0.03996, allocations: 8 kB / 291.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.0403, allocations: 35.89 kB / 291.6 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.203e-05/0.04039, allocations: 27.95 kB / 291.6 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.04041, allocations: 8 kB / 291.7 MB, free: 13.78 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002878/0.0407, allocations: 239.2 kB / 291.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0407, allocations: 0 / 291.9 MB, free: 13.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005921/0.04129, allocations: 136 kB / 292 MB, free: 13.42 MB / 282.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.0001367/0.04143, allocations: 107.2 kB / 292.1 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00206/0.04349, allocations: 0.6481 MB / 292.8 MB, free: 12.65 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.04349, allocations: 4 kB / 292.8 MB, free: 12.65 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004974/0.04399, allocations: 180.7 kB / 293 MB, free: 12.47 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006818/0.04467, allocations: 99.31 kB / 293.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.04659, allocations: 0.9139 MB / 294 MB, free: 11.42 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.04685, allocations: 224.1 kB / 294.2 MB, free: 11.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002649/0.04711, allocations: 55.23 kB / 294.2 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.04722, allocations: 32.5 kB / 294.3 MB, free: 11.09 MB / 282.7 MB Notification: Performance of SimCode: time 8.41e-07/0.04722, allocations: 0 / 294.3 MB, free: 11.09 MB / 282.7 MB Notification: Performance of Templates: time 0.01097/0.05819, allocations: 4.83 MB / 299.1 MB, free: 6.352 MB / 282.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.53293632902205]