Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009201/0.0009201, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009686/0.0009686, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8849/0.8849, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.651e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00393/0.003956, allocations: 2.884 MB / 321.3 MB, free: 3.445 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.005484, allocations: 0.9503 MB / 322.3 MB, free: 2.492 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.005722, allocations: 19.81 kB / 322.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003286/0.006051, allocations: 87.17 kB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.006263, allocations: 115 kB / 322.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.006717, allocations: 241.9 kB / 322.7 MB, free: 2.039 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004373/0.007154, allocations: 0.5299 MB / 323.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.007377, allocations: 121.6 kB / 323.4 MB, free: 1.387 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002749/0.007652, allocations: 275.4 kB / 323.6 MB, free: 1.117 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.007823, allocations: 163.5 kB / 323.8 MB, free: 0.957 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.069e-05/0.007873, allocations: 40 kB / 323.8 MB, free: 0.918 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.815e-05/0.007912, allocations: 40 kB / 323.9 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002192/0.008131, allocations: 111.6 kB / 324 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.476e-05/0.008226, allocations: 139.6 kB / 324.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003908/0.008616, allocations: 0.5022 MB / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.00862, allocations: 0 / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.008621, allocations: 0 / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.008629, allocations: 0 / 324.6 MB, free: 132 kB / 282.7 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.0008624/0.009492, allocations: 0.703 MB / 325.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.009531, allocations: 8.922 kB / 325.3 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.637e-05/0.009587, allocations: 74.72 kB / 325.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.449e-05/0.009651, allocations: 56.61 kB / 325.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/0.01003, allocations: 309.4 kB / 325.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.24e-05/0.01005, allocations: 25.38 kB / 325.8 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.01009, allocations: 40.38 kB / 325.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005314/0.01062, allocations: 472 kB / 326.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.01064, allocations: 12 kB / 326.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.01066, allocations: 12 kB / 326.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.01067, allocations: 8 kB / 326.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000525/0.0112, allocations: 379.6 kB / 326.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.01253, allocations: 1.41 MB / 328.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.01304, allocations: 310.6 kB / 328.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.01327, allocations: 152.8 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.01329, allocations: 4 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.01331, allocations: 38.56 kB / 328.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.803e-06/0.01331, allocations: 4 kB / 328.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001875/0.01519, allocations: 1.223 MB / 329.8 MB, free: 10.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.01523, allocations: 85.11 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.01549, allocations: 365.6 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.01551, allocations: 29.7 kB / 330.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.01562, allocations: 240.3 kB / 330.5 MB, free: 9.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.617e-05/0.01567, allocations: 123 kB / 330.6 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/0.01576, allocations: 86.14 kB / 330.7 MB, free: 9.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.01585, allocations: 358.7 kB / 331.1 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.0161, allocations: 174.7 kB / 331.2 MB, free: 9.184 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002768/0.01637, allocations: 271.2 kB / 331.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004699/0.01684, allocations: 396 kB / 331.9 MB, free: 8.469 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.01685, allocations: 0 / 331.9 MB, free: 8.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006/0.01745, allocations: 493 kB / 332.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.01746, allocations: 4 kB / 332.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.01747, allocations: 11.92 kB / 332.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.01748, allocations: 4 kB / 332.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004465/0.01793, allocations: 207.9 kB / 332.6 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009724/0.0189, allocations: 1.465 MB / 334.1 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.01908, allocations: 43.89 kB / 334.1 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.0191, allocations: 16 kB / 334.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003062/0.01941, allocations: 273 kB / 334.4 MB, free: 5.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002514/0.01966, allocations: 259.2 kB / 334.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000429/0.02009, allocations: 371.7 kB / 335 MB, free: 5.168 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.302e-06/0.02009, allocations: 0 / 335 MB, free: 5.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0005346/0.02063, allocations: 473 kB / 335.5 MB, free: 4.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.02063, allocations: 10.75 kB / 335.5 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.02064, allocations: 4 kB / 335.5 MB, free: 4.688 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.499e-06/0.02064, allocations: 7.938 kB / 335.5 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.02088, allocations: 128 kB / 335.6 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.02088, allocations: 4 kB / 335.6 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.02102, allocations: 31.95 kB / 335.6 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.02103, allocations: 19.98 kB / 335.7 MB, free: 4.5 MB / 298.7 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.000117/0.02115, allocations: 204.1 kB / 335.9 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.895e-05/0.02119, allocations: 35.77 kB / 335.9 MB, free: 4.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.931e-05/0.02125, allocations: 52.19 kB / 336 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.02125, allocations: 4 kB / 336 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.02125, allocations: 4 kB / 336 MB, free: 4.195 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.02126, allocations: 3.984 kB / 336 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009918/0.02225, allocations: 0.8405 MB / 336.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.02225, allocations: 0 / 336.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000214/0.02247, allocations: 91.86 kB / 336.9 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.02247, allocations: 0 / 336.9 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.02248, allocations: 8 kB / 336.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.02249, allocations: 7.938 kB / 336.9 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.02249, allocations: 0 / 336.9 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007707/0.02326, allocations: 0.6793 MB / 337.6 MB, free: 2.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.362e-05/0.02334, allocations: 63.78 kB / 337.7 MB, free: 2.418 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.02337, allocations: 8 kB / 337.7 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.02351, allocations: 31.95 kB / 337.7 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.02356, allocations: 23.97 kB / 337.7 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.02357, allocations: 11.98 kB / 337.7 MB, free: 2.344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001666/0.02374, allocations: 255.1 kB / 338 MB, free: 2.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02374, allocations: 0 / 338 MB, free: 2.094 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00035/0.02409, allocations: 136 kB / 338.1 MB, free: 1.961 MB / 298.7 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.0009635/0.02505, allocations: 1.216 MB / 339.3 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.0261, allocations: 0.6533 MB / 340 MB, free: 48 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.02611, allocations: 0 / 340 MB, free: 48 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002485/0.02635, allocations: 179.7 kB / 340.2 MB, free: 15.87 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004288/0.02678, allocations: 107.2 kB / 340.3 MB, free: 15.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.03065, allocations: 3.924 MB / 344.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.03079, allocations: 224 kB / 344.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000196/0.03098, allocations: 63.23 kB / 344.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.03114, allocations: 140.5 kB / 344.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.03114, allocations: 0 / 344.6 MB, free: 11.26 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.0549, allocations: 9.821 MB / 354.4 MB, free: 1.633 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.654/7.709, allocations: 9.859 kB / 354.4 MB, free: 1.625 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.435306400060654]