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.002059/0.002059, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001803/0.001803, allocations: 184.5 kB / 23.72 MB, free: 4.699 MB / 14.72 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 2.142/2.142, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001727/0.001727, allocations: 51.95 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2746, allocations: 52.18 MB / 422.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005875/0.2805, allocations: 3.163 MB / 425.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00221/0.2827, allocations: 0.9661 MB / 426.7 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004776/0.2832, allocations: 23.75 kB / 426.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004752/0.2837, allocations: 91.22 kB / 426.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000527/0.2842, allocations: 107.1 kB / 427 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008139/0.285, allocations: 234.8 kB / 427.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009687/0.286, allocations: 0.5301 MB / 427.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003585/0.2863, allocations: 117.7 kB / 427.8 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004643/0.2868, allocations: 207.2 kB / 428 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003869/0.2872, allocations: 203 kB / 428.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.2873, allocations: 43.94 kB / 428.3 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.2874, allocations: 44 kB / 428.3 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.2875, allocations: 103.7 kB / 428.4 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003182/0.2879, allocations: 214.8 kB / 428.6 MB, free: 8.684 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007994/0.2887, allocations: 0.4943 MB / 429.1 MB, free: 8.195 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2887, allocations: 4 kB / 429.1 MB, free: 8.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2887, allocations: 4 kB / 429.1 MB, free: 8.188 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.2887, allocations: 0 / 429.1 MB, free: 8.188 MB / 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.001584/0.2903, allocations: 0.7038 MB / 429.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.2903, allocations: 12.03 kB / 429.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.2904, allocations: 78.7 kB / 429.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.2906, allocations: 52.61 kB / 430 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006293/0.2912, allocations: 302.2 kB / 430.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.2912, allocations: 33.12 kB / 430.3 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.2914, allocations: 43.94 kB / 430.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.2924, allocations: 442.4 kB / 430.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.2924, allocations: 0 / 430.8 MB, free: 6.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.2924, allocations: 16 kB / 430.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.2925, allocations: 15.94 kB / 430.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.2935, allocations: 375.6 kB / 431.2 MB, free: 6.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002412/0.2959, allocations: 1.503 MB / 432.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008597/0.2968, allocations: 302.6 kB / 433 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004158/0.2972, allocations: 160.8 kB / 433.1 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.2972, allocations: 8.438 kB / 433.1 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.2972, allocations: 34.55 kB / 433.2 MB, free: 3.945 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.2972, allocations: 0 / 433.2 MB, free: 3.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003273/0.3005, allocations: 1.232 MB / 434.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.3006, allocations: 81.11 kB / 434.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004199/0.301, allocations: 353.6 kB / 434.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.118e-05/0.3011, allocations: 33.69 kB / 434.9 MB, free: 2.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.3012, allocations: 244.3 kB / 435.1 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.3013, allocations: 127.1 kB / 435.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3015, allocations: 74.12 kB / 435.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3016, allocations: 358.7 kB / 435.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.3021, allocations: 174.5 kB / 435.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005176/0.3026, allocations: 252.8 kB / 436.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009359/0.3036, allocations: 395.7 kB / 436.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3036, allocations: 0 / 436.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001193/0.3048, allocations: 493 kB / 436.9 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.3048, allocations: 10.86 kB / 436.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3048, allocations: 0 / 436.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.3048, allocations: 8 kB / 437 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000881/0.3057, allocations: 207.8 kB / 437.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/0.3076, allocations: 1.466 MB / 438.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.3079, allocations: 36.09 kB / 438.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.308, allocations: 23.98 kB / 438.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005457/0.3085, allocations: 268.9 kB / 438.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004548/0.309, allocations: 236.8 kB / 439.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008604/0.3098, allocations: 371.8 kB / 439.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-06/0.3098, allocations: 0 / 439.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001118/0.3109, allocations: 476.9 kB / 440 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.311, allocations: 8.156 kB / 440 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.311, allocations: 8 kB / 440 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.234e-06/0.311, allocations: 4 kB / 440 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.3114, allocations: 123.8 kB / 440.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.3115, allocations: 7.938 kB / 440.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.3118, allocations: 27.97 kB / 440.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.997e-05/0.3118, allocations: 16 kB / 440.2 MB, free: 12.57 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.0001679/0.312, allocations: 208.4 kB / 440.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.177e-05/0.3121, allocations: 43.7 kB / 440.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.084e-05/0.3122, allocations: 44.25 kB / 440.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3122, allocations: 4 kB / 440.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3122, allocations: 0 / 440.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3122, allocations: 4 kB / 440.5 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.314, allocations: 0.8883 MB / 441.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.314, allocations: 8.125 kB / 441.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.3144, allocations: 83.94 kB / 441.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-05/0.3144, allocations: 4 kB / 441.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.3144, allocations: 11.94 kB / 441.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.3144, allocations: 0 / 441.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.3144, allocations: 7.984 kB / 441.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.3159, allocations: 0.6713 MB / 442.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.316, allocations: 71.67 kB / 442.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.031e-05/0.3161, allocations: 4 kB / 442.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.3164, allocations: 43.89 kB / 442.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.836e-05/0.3165, allocations: 31.89 kB / 442.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.3165, allocations: 11.98 kB / 442.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002794/0.3168, allocations: 247.2 kB / 442.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3168, allocations: 0 / 442.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005676/0.3173, allocations: 136 kB / 442.7 MB, free: 9.965 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.001784/0.3191, allocations: 1.219 MB / 443.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.321, allocations: 0.6486 MB / 444.6 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.321, allocations: 4 kB / 444.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005005/0.3215, allocations: 180.4 kB / 444.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.3222, allocations: 94.11 kB / 444.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007348/0.3296, allocations: 4.018 MB / 448.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.3301, allocations: 0.8195 MB / 449.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002505/0.3303, allocations: 59.23 kB / 449.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.3306, allocations: 147.4 kB / 449.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3306, allocations: 0 / 449.9 MB, free: 2.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04388/0.3744, allocations: 9.075 MB / 459 MB, free: 9.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.38, allocations: 9.719 kB / 459 MB, free: 9.648 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/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: 16.652321297908202]