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.001451/0.001451, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002489/0.002489, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.649/1.649, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.00152/0.00152, allocations: 43.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2437, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00514/0.2488, allocations: 2.918 MB / 434 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.2514, allocations: 0.9657 MB / 435 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.2516, allocations: 15.88 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.252, allocations: 91.16 kB / 435.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002592/0.2523, allocations: 107.1 kB / 435.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006142/0.2529, allocations: 238.7 kB / 435.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007136/0.2536, allocations: 0.5184 MB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.2539, allocations: 117.7 kB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.2543, allocations: 203.2 kB / 436.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.2546, allocations: 183 kB / 436.4 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.419e-05/0.2546, allocations: 40 kB / 436.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.487e-05/0.2547, allocations: 47.94 kB / 436.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.2549, allocations: 111.5 kB / 436.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.2551, allocations: 175.1 kB / 436.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007005/0.2558, allocations: 0.4919 MB / 437.3 MB, free: 464 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.2558, allocations: 0 / 437.3 MB, free: 464 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2558, allocations: 4 kB / 437.3 MB, free: 460 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.2558, allocations: 0 / 437.3 MB, free: 460 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.001397/0.2572, allocations: 0.7065 MB / 438 MB, free: 15.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.2572, allocations: 8.031 kB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.301e-05/0.2573, allocations: 74.72 kB / 438.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.581e-05/0.2574, allocations: 52.61 kB / 438.1 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006264/0.2581, allocations: 314.1 kB / 438.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/0.2581, allocations: 29.38 kB / 438.4 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.069e-05/0.2582, allocations: 36.38 kB / 438.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009457/0.2591, allocations: 0.4949 MB / 439 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.2591, allocations: 7.953 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.2592, allocations: 20 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.2592, allocations: 8 kB / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009701/0.2602, allocations: 375.6 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.2623, allocations: 1.418 MB / 440.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008068/0.2631, allocations: 295.4 kB / 441.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004357/0.2635, allocations: 156.7 kB / 441.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.2636, allocations: 4 kB / 441.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.2636, allocations: 38.56 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.234e-06/0.2636, allocations: 4 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003157/0.2668, allocations: 1.239 MB / 442.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.2668, allocations: 106.8 kB / 442.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.2673, allocations: 369.6 kB / 443 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.2673, allocations: 29.7 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.2675, allocations: 240.3 kB / 443.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.442e-05/0.2676, allocations: 123.2 kB / 443.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.2677, allocations: 78.08 kB / 443.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2678, allocations: 358.7 kB / 443.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004608/0.2683, allocations: 170.5 kB / 444 MB, free: 9.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.2689, allocations: 305.1 kB / 444.3 MB, free: 9.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009242/0.2698, allocations: 399.9 kB / 444.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2698, allocations: 3.938 kB / 444.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001149/0.2709, allocations: 0.4892 MB / 445.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.271, allocations: 4 kB / 445.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.271, allocations: 4 kB / 445.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.271, allocations: 8 kB / 445.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008862/0.2719, allocations: 215.8 kB / 445.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.2736, allocations: 1.461 MB / 446.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003401/0.2739, allocations: 35.97 kB / 446.9 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/0.274, allocations: 16 kB / 446.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000557/0.2745, allocations: 272.9 kB / 447.1 MB, free: 6.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005743/0.2751, allocations: 297.2 kB / 447.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008403/0.2759, allocations: 371.7 kB / 447.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.2759, allocations: 0 / 447.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001031/0.277, allocations: 469.1 kB / 448.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.277, allocations: 8 kB / 448.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.277, allocations: 0 / 448.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.032e-06/0.277, allocations: 4 kB / 448.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.2775, allocations: 127.7 kB / 448.4 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2775, allocations: 8.156 kB / 448.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.2778, allocations: 35.97 kB / 448.4 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.2778, allocations: 12 kB / 448.5 MB, free: 4.66 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.0001654/0.278, allocations: 209.8 kB / 448.7 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.982e-05/0.2781, allocations: 43.7 kB / 448.7 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.2782, allocations: 48.12 kB / 448.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.2782, allocations: 4 kB / 448.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2782, allocations: 0 / 448.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.2782, allocations: 4 kB / 448.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.2799, allocations: 0.8483 MB / 449.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.2799, allocations: 0 / 449.6 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004309/0.2803, allocations: 87.88 kB / 449.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.2804, allocations: 3.984 kB / 449.7 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.2804, allocations: 8 kB / 449.7 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.2804, allocations: 4 kB / 449.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.2804, allocations: 4 kB / 449.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.2819, allocations: 0.6797 MB / 450.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.282, allocations: 55.8 kB / 450.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.658e-05/0.2821, allocations: 19.98 kB / 450.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003016/0.2824, allocations: 27.97 kB / 450.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.2825, allocations: 23.95 kB / 450.5 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.2825, allocations: 8 kB / 450.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002986/0.2828, allocations: 263 kB / 450.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2828, allocations: 0 / 450.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005465/0.2833, allocations: 132 kB / 450.9 MB, free: 2.105 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.001795/0.2851, allocations: 1.22 MB / 452.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.2872, allocations: 0.6611 MB / 452.8 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2872, allocations: 0 / 452.8 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004686/0.2876, allocations: 171.8 kB / 453 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006975/0.2883, allocations: 102.4 kB / 453.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006654/0.295, allocations: 4.018 MB / 457.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.2952, allocations: 220.1 kB / 457.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002861/0.2955, allocations: 63.23 kB / 457.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.2957, allocations: 139.4 kB / 457.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.2957, allocations: 0 / 457.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05825/0.354, allocations: 9.666 MB / 467.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.74, allocations: 0 / 467.2 MB, free: 1.863 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: 15.39943181304261]