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.001645/0.001645, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001988/0.001988, allocations: 211.4 kB / 23.73 MB, free: 4.523 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.812 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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 43.92 kB / 377.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2355/0.237, allocations: 53.37 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004312/0.2414, allocations: 2.918 MB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.2431, allocations: 0.9542 MB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.2433, allocations: 23.81 kB / 435 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.2436, allocations: 87.22 kB / 435.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002454/0.2438, allocations: 107.1 kB / 435.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005712/0.2444, allocations: 242.6 kB / 435.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005733/0.245, allocations: 0.5224 MB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.2452, allocations: 117.7 kB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.2455, allocations: 211.1 kB / 436.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002636/0.2457, allocations: 211 kB / 436.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.919e-05/0.2458, allocations: 40 kB / 436.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.956e-05/0.2459, allocations: 40 kB / 436.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.246, allocations: 103.6 kB / 436.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.2462, allocations: 175.1 kB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005276/0.2467, allocations: 0.5021 MB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2467, allocations: 3.938 kB / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2467, allocations: 0 / 437.3 MB, free: 436 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2467, allocations: 0 / 437.3 MB, free: 436 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.001284/0.248, allocations: 0.7038 MB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.248, allocations: 12.03 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.166e-05/0.2481, allocations: 78.72 kB / 438.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.2482, allocations: 52.61 kB / 438.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.2487, allocations: 302.2 kB / 438.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.2487, allocations: 29.38 kB / 438.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.092e-05/0.2488, allocations: 40.36 kB / 438.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009154/0.2497, allocations: 0.4988 MB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.2497, allocations: 7.938 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.2498, allocations: 16 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.2498, allocations: 15.94 kB / 439 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009564/0.2508, allocations: 375.6 kB / 439.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.2528, allocations: 1.41 MB / 440.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007795/0.2536, allocations: 291.5 kB / 441.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000415/0.254, allocations: 164.7 kB / 441.3 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.254, allocations: 4 kB / 441.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.254, allocations: 38.5 kB / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.402e-06/0.254, allocations: 0 / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003096/0.2571, allocations: 1.231 MB / 442.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.476e-05/0.2572, allocations: 106.8 kB / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.2576, allocations: 369.6 kB / 443 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.2576, allocations: 33.7 kB / 443 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.2578, allocations: 244.3 kB / 443.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.463e-05/0.2579, allocations: 115.2 kB / 443.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.258, allocations: 82.08 kB / 443.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.2582, allocations: 354.7 kB / 443.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004562/0.2587, allocations: 178.5 kB / 444 MB, free: 9.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005287/0.2592, allocations: 309 kB / 444.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008754/0.2601, allocations: 391.9 kB / 444.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2601, allocations: 0 / 444.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001082/0.2612, allocations: 0.4892 MB / 445.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2612, allocations: 8 kB / 445.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2612, allocations: 4.203 kB / 445.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2612, allocations: 15.94 kB / 445.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000866/0.2621, allocations: 203.7 kB / 445.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.2637, allocations: 1.465 MB / 446.9 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.264, allocations: 35.95 kB / 446.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.202e-05/0.2641, allocations: 16.09 kB / 446.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005123/0.2646, allocations: 276.9 kB / 447.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004919/0.2651, allocations: 293 kB / 447.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007762/0.2658, allocations: 375.7 kB / 447.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.754e-06/0.2658, allocations: 0 / 447.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000969/0.2668, allocations: 469 kB / 448.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.2668, allocations: 4.219 kB / 448.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2668, allocations: 11.98 kB / 448.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.93e-06/0.2668, allocations: 4 kB / 448.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004836/0.2673, allocations: 119.8 kB / 448.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.2673, allocations: 7.938 kB / 448.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.2676, allocations: 35.95 kB / 448.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.2676, allocations: 16 kB / 448.5 MB, free: 4.633 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.0001558/0.2678, allocations: 208.1 kB / 448.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.755e-05/0.2679, allocations: 39.7 kB / 448.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.838e-05/0.268, allocations: 52.19 kB / 448.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.237e-06/0.268, allocations: 4 kB / 448.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.268, allocations: 0 / 448.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.268, allocations: 3.984 kB / 448.8 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.2696, allocations: 0.8443 MB / 449.6 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2696, allocations: 4 kB / 449.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/0.27, allocations: 87.88 kB / 449.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.333e-06/0.27, allocations: 8.125 kB / 449.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.2701, allocations: 8 kB / 449.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2701, allocations: 0 / 449.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.2701, allocations: 7.938 kB / 449.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.2714, allocations: 0.668 MB / 450.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.2716, allocations: 63.78 kB / 450.5 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.2716, allocations: 8 kB / 450.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.2719, allocations: 35.95 kB / 450.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.015e-05/0.272, allocations: 27.89 kB / 450.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.2721, allocations: 16 kB / 450.6 MB, free: 2.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002832/0.2723, allocations: 247.1 kB / 450.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2723, allocations: 0 / 450.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.2729, allocations: 140 kB / 450.9 MB, free: 2.082 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.001702/0.2746, allocations: 1.212 MB / 452.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.2764, allocations: 0.657 MB / 452.8 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2764, allocations: 0 / 452.8 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/0.2769, allocations: 188.5 kB / 453 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006595/0.2776, allocations: 96.06 kB / 453.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006225/0.2838, allocations: 4.022 MB / 457.1 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.284, allocations: 216.2 kB / 457.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002627/0.2843, allocations: 63.23 kB / 457.4 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.2845, allocations: 143.4 kB / 457.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2845, allocations: 0 / 457.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03871/0.3232, allocations: 9.758 MB / 467.3 MB, free: 1.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.41, allocations: 3.984 kB / 467.3 MB, free: 1.738 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] 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: 14.908290100982413]