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.001748/0.001748, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001947/0.001947, allocations: 209 kB / 24.48 MB, free: 3.941 MB / 14.72 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.591/1.591, allocations: 230.6 MB / 258.2 MB, free: 7.773 MB / 206.1 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 0.001632/0.001632, allocations: 39.94 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3598, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005104/0.3649, allocations: 2.918 MB / 435.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.3672, allocations: 0.962 MB / 436.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.3675, allocations: 15.88 kB / 436.2 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004133/0.3679, allocations: 95.11 kB / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.3682, allocations: 107.1 kB / 436.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007015/0.3689, allocations: 238.9 kB / 436.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006766/0.3696, allocations: 0.5184 MB / 437.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.3699, allocations: 129.7 kB / 437.3 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.3702, allocations: 199.2 kB / 437.5 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002985/0.3705, allocations: 207 kB / 437.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.3706, allocations: 43.94 kB / 437.7 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.667e-05/0.3706, allocations: 44 kB / 437.8 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001335/0.3708, allocations: 107.6 kB / 437.9 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.371, allocations: 171.1 kB / 438.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006346/0.3716, allocations: 0.4968 MB / 438.5 MB, free: 476 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3716, allocations: 4 kB / 438.6 MB, free: 472 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3716, allocations: 0 / 438.6 MB, free: 472 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3716, allocations: 0 / 438.6 MB, free: 472 kB / 334.1 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.001478/0.3731, allocations: 0.7038 MB / 439.3 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3731, allocations: 8.031 kB / 439.3 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.3733, allocations: 52.61 kB / 439.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006319/0.3739, allocations: 310.1 kB / 439.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.3739, allocations: 29.38 kB / 439.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.209e-05/0.374, allocations: 36.38 kB / 439.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.3751, allocations: 0.5029 MB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.3751, allocations: 3.953 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.206e-05/0.3751, allocations: 16 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.3751, allocations: 8 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.3762, allocations: 375.6 kB / 440.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.3785, allocations: 1.36 MB / 441.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009065/0.3794, allocations: 303.3 kB / 442.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.3799, allocations: 152.8 kB / 442.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.284e-05/0.3799, allocations: 4 kB / 442.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/0.38, allocations: 38.5 kB / 442.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.904e-06/0.38, allocations: 0 / 442.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003495/0.3835, allocations: 1.24 MB / 443.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.108e-05/0.3835, allocations: 106.8 kB / 443.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004118/0.384, allocations: 345.6 kB / 444.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.384, allocations: 29.7 kB / 444.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002282/0.3842, allocations: 252.4 kB / 444.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.3843, allocations: 119.2 kB / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3845, allocations: 78.08 kB / 444.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002833/0.3848, allocations: 350.8 kB / 444.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004796/0.3852, allocations: 170.5 kB / 445.1 MB, free: 9.613 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005745/0.3858, allocations: 309.1 kB / 445.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009434/0.3868, allocations: 387.9 kB / 445.8 MB, free: 8.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.3868, allocations: 4 kB / 445.8 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001171/0.3879, allocations: 497.1 kB / 446.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.388, allocations: 12.03 kB / 446.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.388, allocations: 7.984 kB / 446.3 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.388, allocations: 4 kB / 446.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009285/0.3889, allocations: 211.7 kB / 446.5 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00191/0.3908, allocations: 1.446 MB / 447.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.3912, allocations: 44.02 kB / 448 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.3912, allocations: 16 kB / 448 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005702/0.3918, allocations: 272.9 kB / 448.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005617/0.3924, allocations: 293.1 kB / 448.5 MB, free: 5.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008363/0.3932, allocations: 375.7 kB / 448.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.784e-06/0.3932, allocations: 0 / 448.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00107/0.3943, allocations: 465.1 kB / 449.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.3943, allocations: 4 kB / 449.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3943, allocations: 4 kB / 449.4 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.323e-06/0.3943, allocations: 4 kB / 449.4 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005294/0.3948, allocations: 119.8 kB / 449.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3948, allocations: 4 kB / 449.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.3952, allocations: 40.03 kB / 449.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.3952, allocations: 19.94 kB / 449.6 MB, free: 4.883 MB / 350.1 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.0002708/0.3955, allocations: 212.1 kB / 449.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.3955, allocations: 35.77 kB / 449.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.3957, allocations: 44.09 kB / 449.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3957, allocations: 4 kB / 449.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3957, allocations: 0 / 449.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.3957, allocations: 3.938 kB / 449.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.3974, allocations: 0.7903 MB / 450.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.3975, allocations: 4 kB / 450.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000442/0.3979, allocations: 91.98 kB / 450.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.3979, allocations: 7.938 kB / 450.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.3979, allocations: 11.94 kB / 450.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3979, allocations: 0 / 450.8 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3979, allocations: 7.938 kB / 450.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.3994, allocations: 0.6719 MB / 451.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.3996, allocations: 59.73 kB / 451.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.616e-05/0.3996, allocations: 16.11 kB / 451.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.4, allocations: 31.97 kB / 451.5 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.4001, allocations: 31.95 kB / 451.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.4001, allocations: 4 kB / 451.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002971/0.4004, allocations: 239.2 kB / 451.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4004, allocations: 0 / 451.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005911/0.401, allocations: 132 kB / 451.9 MB, free: 2.418 MB / 350.1 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.000137/0.4011, allocations: 107.2 kB / 452 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.4031, allocations: 0.652 MB / 452.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.4031, allocations: 4 kB / 452.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004661/0.4036, allocations: 172.3 kB / 452.9 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006872/0.4043, allocations: 97.88 kB / 453 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.4063, allocations: 1.018 MB / 454 MB, free: 336 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002426/0.4065, allocations: 220 kB / 454.2 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000329/0.4068, allocations: 55.23 kB / 454.2 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.407, allocations: 31.44 kB / 454.3 MB, free: 4 kB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.407, allocations: 3.938 kB / 454.3 MB, free: 0 / 350.1 MB Notification: Performance of Templates: time 0.0119/0.4189, allocations: 5.356 MB / 459.6 MB, free: 10.73 MB / 366.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/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: 5.990348270992399]