Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001368/0.001368, allocations: 109.1 kB / 21.22 MB, free: 0.7461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 211.7 kB / 24.52 MB, free: 4.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 230.5 MB / 258.2 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 63.89 kB / 378.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4408/0.4426, allocations: 53.41 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005519/0.4481, allocations: 3.148 MB / 435.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.4507, allocations: 1.02 MB / 436.1 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002961/0.451, allocations: 19.81 kB / 436.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004759/0.4515, allocations: 87.17 kB / 436.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002719/0.4517, allocations: 107.1 kB / 436.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006843/0.4524, allocations: 238.8 kB / 436.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006886/0.4531, allocations: 0.5185 MB / 437.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.4534, allocations: 121.7 kB / 437.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002957/0.4537, allocations: 207.1 kB / 437.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.4541, allocations: 214.9 kB / 437.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.886e-05/0.4541, allocations: 40 kB / 437.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.644e-05/0.4542, allocations: 44 kB / 437.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.4543, allocations: 107.5 kB / 437.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002193/0.4546, allocations: 214.8 kB / 438 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006778/0.4552, allocations: 0.4904 MB / 438.5 MB, free: 132 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4552, allocations: 7.984 kB / 438.5 MB, free: 124 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4552, allocations: 0 / 438.5 MB, free: 124 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.4553, allocations: 0 / 438.5 MB, free: 124 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.001484/0.4567, allocations: 0.6962 MB / 439.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.4568, allocations: 8.031 kB / 439.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.811e-05/0.4568, allocations: 9.188 kB / 439.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.312e-05/0.4569, allocations: 78.72 kB / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.457, allocations: 52.61 kB / 439.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006568/0.4577, allocations: 310.1 kB / 439.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.4577, allocations: 29.38 kB / 439.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.147e-05/0.4578, allocations: 36.38 kB / 439.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009856/0.4588, allocations: 459.1 kB / 440.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.4588, allocations: 7.953 kB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.222e-05/0.4588, allocations: 16 kB / 440.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.4589, allocations: 15.94 kB / 440.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001015/0.4599, allocations: 379.6 kB / 440.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.4622, allocations: 1.496 MB / 442.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008628/0.4631, allocations: 298.6 kB / 442.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.4635, allocations: 156.8 kB / 442.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.4635, allocations: 0 / 442.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.4636, allocations: 42.56 kB / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.4636, allocations: 0 / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003408/0.467, allocations: 1.24 MB / 443.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.311e-05/0.4671, allocations: 106.8 kB / 443.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004471/0.4675, allocations: 357.6 kB / 444.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.831e-05/0.4676, allocations: 29.7 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.4678, allocations: 248.3 kB / 444.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.4679, allocations: 127.1 kB / 444.7 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.468, allocations: 70.14 kB / 444.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.4682, allocations: 358.7 kB / 445.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.4687, allocations: 174.5 kB / 445.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005311/0.4692, allocations: 253.7 kB / 445.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000945/0.4702, allocations: 391.3 kB / 445.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.4702, allocations: 7.938 kB / 445.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001139/0.4713, allocations: 0.4935 MB / 446.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.4713, allocations: 4 kB / 446.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4713, allocations: 4 kB / 446.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.4714, allocations: 4 kB / 446.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008947/0.4723, allocations: 207.7 kB / 446.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/0.4742, allocations: 1.476 MB / 448.1 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.4745, allocations: 31.97 kB / 448.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.4745, allocations: 15.98 kB / 448.1 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000584/0.4751, allocations: 273 kB / 448.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004887/0.4756, allocations: 245.7 kB / 448.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000828/0.4764, allocations: 367.4 kB / 449 MB, free: 5.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.697e-06/0.4764, allocations: 4 kB / 449 MB, free: 5.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001024/0.4775, allocations: 473.2 kB / 449.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.4775, allocations: 4 kB / 449.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.4775, allocations: 4 kB / 449.5 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.414e-06/0.4775, allocations: 8.156 kB / 449.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.478, allocations: 123.8 kB / 449.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.478, allocations: 4 kB / 449.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.4783, allocations: 39.97 kB / 449.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.4783, allocations: 16 kB / 449.6 MB, free: 4.422 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.0002171/0.4786, allocations: 211.2 kB / 449.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.579e-05/0.4787, allocations: 47.66 kB / 449.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.4788, allocations: 48.19 kB / 449.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4788, allocations: 4 kB / 449.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.4788, allocations: 0 / 449.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4788, allocations: 4 kB / 450 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.4806, allocations: 0.8872 MB / 450.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4806, allocations: 0 / 450.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004203/0.481, allocations: 88 kB / 450.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.481, allocations: 4 kB / 450.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.481, allocations: 8 kB / 450.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.481, allocations: 0 / 450.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.481, allocations: 4 kB / 450.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.4825, allocations: 0.671 MB / 451.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.4827, allocations: 67.73 kB / 451.7 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.7e-05/0.4827, allocations: 8 kB / 451.7 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/0.483, allocations: 31.95 kB / 451.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.4831, allocations: 23.95 kB / 451.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.4831, allocations: 19.94 kB / 451.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000302/0.4834, allocations: 247.1 kB / 452 MB, free: 1.969 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4834, allocations: 0 / 452 MB, free: 1.969 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005689/0.484, allocations: 140 kB / 452.1 MB, free: 1.832 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.001848/0.4858, allocations: 1.212 MB / 453.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.4878, allocations: 0.6532 MB / 454 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4878, allocations: 4 kB / 454 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004568/0.4883, allocations: 172.4 kB / 454.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006875/0.489, allocations: 118.1 kB / 454.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006772/0.4957, allocations: 4.009 MB / 458.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005065/0.4962, allocations: 0.8195 MB / 459.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000299/0.4965, allocations: 59.23 kB / 459.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.4968, allocations: 143.4 kB / 459.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4968, allocations: 4 kB / 459.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03572/0.5325, allocations: 9.077 MB / 468.4 MB, free: 1.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.49, allocations: 4.062 kB / 468.4 MB, free: 1.48 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 16.36094232299365]