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.001607/0.001607, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001891/0.001891, allocations: 203.7 kB / 23.72 MB, free: 4.391 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.619/1.619, allocations: 230.5 MB / 257.4 MB, free: 7.727 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 63.89 kB / 377.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.4316, allocations: 53.4 MB / 431.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004982/0.4365, allocations: 2.911 MB / 434 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.439, allocations: 0.9735 MB / 435 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002613/0.4392, allocations: 19.88 kB / 435 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004445/0.4397, allocations: 87.17 kB / 435.1 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.44, allocations: 103.1 kB / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007/0.4407, allocations: 243.3 kB / 435.5 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000663/0.4413, allocations: 0.5145 MB / 436 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000318/0.4416, allocations: 121.7 kB / 436.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.4419, allocations: 195.2 kB / 436.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002915/0.4422, allocations: 187 kB / 436.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-05/0.4423, allocations: 40 kB / 436.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.899e-05/0.4423, allocations: 44 kB / 436.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.4425, allocations: 111.5 kB / 436.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.4427, allocations: 167.1 kB / 436.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006529/0.4433, allocations: 0.4996 MB / 437.3 MB, free: 224 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.4433, allocations: 8 kB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.4433, allocations: 0 / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.4433, allocations: 0 / 437.3 MB, free: 216 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.001339/0.4447, allocations: 0.7018 MB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.4447, allocations: 11.98 kB / 438 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.769e-05/0.4448, allocations: 74.66 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.4449, allocations: 52.61 kB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006131/0.4455, allocations: 314.1 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.564e-05/0.4456, allocations: 29.38 kB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.929e-05/0.4456, allocations: 40.33 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009339/0.4466, allocations: 0.4969 MB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.4466, allocations: 4 kB / 439 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.4466, allocations: 16 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.4466, allocations: 11.98 kB / 439.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009778/0.4476, allocations: 375.6 kB / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.4498, allocations: 1.422 MB / 440.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008264/0.4506, allocations: 298.6 kB / 441.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/0.4511, allocations: 152.7 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.4511, allocations: 4 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.4511, allocations: 38.56 kB / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.903e-06/0.4511, allocations: 0 / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003282/0.4544, allocations: 1.247 MB / 442.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.489e-05/0.4545, allocations: 110.8 kB / 442.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000436/0.4549, allocations: 361.6 kB / 443 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.455, allocations: 33.69 kB / 443.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.4552, allocations: 240.3 kB / 443.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.4553, allocations: 127.2 kB / 443.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.4554, allocations: 78.08 kB / 443.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.4556, allocations: 350.8 kB / 443.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.456, allocations: 170.5 kB / 444 MB, free: 9.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005601/0.4566, allocations: 309.1 kB / 444.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009175/0.4575, allocations: 395.9 kB / 444.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4575, allocations: 4 kB / 444.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00115/0.4587, allocations: 493 kB / 445.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4587, allocations: 4 kB / 445.2 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4587, allocations: 4 kB / 445.2 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.4587, allocations: 7.938 kB / 445.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008847/0.4596, allocations: 211.8 kB / 445.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.4614, allocations: 1.465 MB / 446.9 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.4618, allocations: 40.08 kB / 446.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.4618, allocations: 12 kB / 446.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005714/0.4624, allocations: 280.8 kB / 447.2 MB, free: 5.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004943/0.4629, allocations: 293.1 kB / 447.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008202/0.4637, allocations: 367.7 kB / 447.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.22e-06/0.4637, allocations: 3.938 kB / 447.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009835/0.4647, allocations: 473 kB / 448.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.4647, allocations: 8 kB / 448.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.4647, allocations: 0 / 448.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.25e-06/0.4647, allocations: 4 kB / 448.3 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004722/0.4652, allocations: 119.8 kB / 448.4 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.4652, allocations: 7.984 kB / 448.5 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.4655, allocations: 36.12 kB / 448.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.4655, allocations: 12 kB / 448.5 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.0001708/0.4657, allocations: 215.8 kB / 448.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.426e-05/0.4657, allocations: 43.72 kB / 448.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.4658, allocations: 56.17 kB / 448.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.4659, allocations: 4 kB / 448.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4659, allocations: 0 / 448.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4659, allocations: 0 / 448.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.4676, allocations: 0.8482 MB / 449.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4676, allocations: 0 / 449.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004064/0.468, allocations: 92 kB / 449.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.468, allocations: 0 / 449.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.468, allocations: 8 kB / 449.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.12e-05/0.4681, allocations: 15.86 kB / 449.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4681, allocations: 0 / 449.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.4695, allocations: 0.6713 MB / 450.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.4696, allocations: 59.8 kB / 450.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.746e-05/0.4697, allocations: 8 kB / 450.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.47, allocations: 39.89 kB / 450.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.008e-05/0.47, allocations: 23.95 kB / 450.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.4701, allocations: 12 kB / 450.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.4704, allocations: 255.2 kB / 450.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4704, allocations: 0 / 450.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005735/0.4709, allocations: 132 kB / 451 MB, free: 1.863 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.001858/0.4728, allocations: 1.22 MB / 452.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001936/0.4747, allocations: 0.6573 MB / 452.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.4747, allocations: 4.125 kB / 452.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004637/0.4752, allocations: 175.8 kB / 453 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006493/0.4759, allocations: 107.3 kB / 453.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006559/0.4824, allocations: 4.018 MB / 457.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.4827, allocations: 216.2 kB / 457.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003123/0.483, allocations: 63.22 kB / 457.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.4832, allocations: 143.4 kB / 457.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4832, allocations: 3.938 kB / 457.6 MB, free: 11.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07031/0.5535, allocations: 9.642 MB / 467.2 MB, free: 1.586 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.02, allocations: 11.8 kB / 467.2 MB, free: 1.574 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.855402870103717]