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.001583/0.001583, 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.00193/0.00193, allocations: 207.5 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.534/1.534, allocations: 230.5 MB / 257.4 MB, free: 7.746 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.002137/0.002137, allocations: 67.91 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3537, allocations: 53.4 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005118/0.3588, allocations: 2.915 MB / 434 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.3611, allocations: 0.9618 MB / 435 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.3614, allocations: 15.88 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004188/0.3618, allocations: 91.16 kB / 435.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002739/0.3621, allocations: 107.1 kB / 435.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006763/0.3627, allocations: 235.7 kB / 435.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006342/0.3634, allocations: 0.5145 MB / 436 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.3637, allocations: 121.7 kB / 436.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.3639, allocations: 203.2 kB / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/0.3642, allocations: 183 kB / 436.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.848e-05/0.3643, allocations: 40 kB / 436.5 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.612e-05/0.3643, allocations: 44 kB / 436.5 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.3645, allocations: 111.5 kB / 436.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.3647, allocations: 171.1 kB / 436.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006224/0.3653, allocations: 0.4958 MB / 437.3 MB, free: 240 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3653, allocations: 0 / 437.3 MB, free: 240 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3653, allocations: 0 / 437.3 MB, free: 240 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3653, allocations: 0 / 437.3 MB, free: 240 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.001506/0.3668, allocations: 0.7079 MB / 438 MB, free: 15.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.596e-05/0.3669, allocations: 11.98 kB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.367, allocations: 70.72 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.3671, allocations: 60.61 kB / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006828/0.3678, allocations: 310.1 kB / 438.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.3678, allocations: 29.38 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-05/0.3679, allocations: 40.38 kB / 438.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.3689, allocations: 0.5027 MB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.369, allocations: 3.953 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.091e-05/0.369, allocations: 16 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.369, allocations: 11.94 kB / 439.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009957/0.37, allocations: 375.6 kB / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.3724, allocations: 1.414 MB / 440.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000969/0.3734, allocations: 298.2 kB / 441.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.3738, allocations: 160.6 kB / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.3738, allocations: 11.98 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.3739, allocations: 34.56 kB / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.3739, allocations: 0 / 441.3 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003519/0.3774, allocations: 1.236 MB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.3775, allocations: 110.8 kB / 442.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005469/0.3781, allocations: 365.6 kB / 443 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.3781, allocations: 37.7 kB / 443.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.3784, allocations: 236.3 kB / 443.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3785, allocations: 127.2 kB / 443.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.3787, allocations: 82.08 kB / 443.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002845/0.379, allocations: 350.7 kB / 443.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/0.3795, allocations: 170.5 kB / 444 MB, free: 9.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006063/0.3801, allocations: 313.1 kB / 444.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009731/0.3811, allocations: 395.8 kB / 444.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3811, allocations: 0 / 444.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001176/0.3823, allocations: 493 kB / 445.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3823, allocations: 8 kB / 445.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3823, allocations: 0 / 445.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.648e-05/0.3823, allocations: 4.219 kB / 445.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009057/0.3832, allocations: 211.7 kB / 445.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001904/0.3851, allocations: 1.469 MB / 446.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003268/0.3855, allocations: 39.95 kB / 446.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.3855, allocations: 8 kB / 446.9 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005735/0.3861, allocations: 281 kB / 447.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005232/0.3866, allocations: 289.1 kB / 447.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008214/0.3874, allocations: 371.7 kB / 447.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.683e-06/0.3874, allocations: 4 kB / 447.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001066/0.3885, allocations: 473 kB / 448.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.3885, allocations: 4 kB / 448.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-06/0.3885, allocations: 4.219 kB / 448.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.36e-06/0.3885, allocations: 8 kB / 448.3 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004872/0.389, allocations: 127.7 kB / 448.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.389, allocations: 4 kB / 448.5 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.3893, allocations: 31.97 kB / 448.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.3893, allocations: 16 kB / 448.5 MB, free: 4.43 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.0002305/0.3896, allocations: 215.1 kB / 448.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.178e-05/0.3896, allocations: 47.69 kB / 448.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.3897, allocations: 56.12 kB / 448.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3897, allocations: 0 / 448.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.3897, allocations: 4 kB / 448.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.3898, allocations: 0 / 448.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/0.3915, allocations: 0.8443 MB / 449.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3915, allocations: 0 / 449.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004196/0.3919, allocations: 87.88 kB / 449.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3919, allocations: 0 / 449.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.392, allocations: 12.11 kB / 449.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.199e-06/0.392, allocations: 8 kB / 449.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.392, allocations: 0 / 449.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.3935, allocations: 0.6752 MB / 450.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.3936, allocations: 59.8 kB / 450.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/0.3936, allocations: 11.98 kB / 450.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.3939, allocations: 31.95 kB / 450.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.572e-05/0.394, allocations: 27.95 kB / 450.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.394, allocations: 8 kB / 450.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002994/0.3943, allocations: 263.1 kB / 450.8 MB, free: 2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3943, allocations: 0 / 450.8 MB, free: 2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005365/0.3949, allocations: 136 kB / 451 MB, free: 1.867 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.001865/0.3967, allocations: 1.208 MB / 452.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001948/0.3987, allocations: 0.657 MB / 452.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3987, allocations: 0 / 452.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004787/0.3992, allocations: 180.4 kB / 453 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006882/0.3999, allocations: 104.2 kB / 453.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007269/0.4071, allocations: 4.022 MB / 457.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.4074, allocations: 212.2 kB / 457.3 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003312/0.4078, allocations: 67.22 kB / 457.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.4081, allocations: 143.4 kB / 457.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4081, allocations: 0 / 457.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05493/0.463, allocations: 9.639 MB / 467.2 MB, free: 1.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.37, allocations: 3.859 kB / 467.2 MB, free: 1.602 MB / 366.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798085 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.csv","/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] "Error: Could not read variable inertia1.w in file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv. Warning: Get data of variable inertia1.w from file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv failed! Error: Could not read variable spring.w_rel in file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv. Warning: Get data of variable spring.w_rel from file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.043457141146064]