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.001134/0.001134, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001356/0.001356, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.593/1.593, allocations: 230.5 MB / 258.2 MB, free: 7.801 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 64.09 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3757, allocations: 53.4 MB / 431.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006962/0.3826, allocations: 2.915 MB / 434.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003291/0.3859, allocations: 0.9659 MB / 435.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004145/0.3863, allocations: 15.88 kB / 435.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005569/0.3869, allocations: 91.17 kB / 435.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.3872, allocations: 99.08 kB / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007698/0.388, allocations: 246.5 kB / 436.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007129/0.3887, allocations: 0.5185 MB / 436.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.389, allocations: 117.7 kB / 436.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002744/0.3893, allocations: 207.1 kB / 437.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000331/0.3896, allocations: 211 kB / 437.3 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.081e-05/0.3897, allocations: 40 kB / 437.3 MB, free: 1.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.609e-05/0.3898, allocations: 40 kB / 437.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.3899, allocations: 107.6 kB / 437.4 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000211/0.3901, allocations: 175 kB / 437.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007024/0.3908, allocations: 0.4962 MB / 438.1 MB, free: 380 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3908, allocations: 0 / 438.1 MB, free: 380 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3909, allocations: 4 kB / 438.1 MB, free: 376 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.3909, allocations: 0 / 438.1 MB, free: 376 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.001516/0.3924, allocations: 0.7077 MB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.3924, allocations: 12.03 kB / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.371e-05/0.3925, allocations: 9.188 kB / 438.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.373e-05/0.3926, allocations: 70.72 kB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.3927, allocations: 52.61 kB / 439 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006666/0.3933, allocations: 310.1 kB / 439.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/0.3934, allocations: 29.38 kB / 439.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-05/0.3935, allocations: 36.38 kB / 439.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.3945, allocations: 0.5025 MB / 439.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.3945, allocations: 15.83 kB / 439.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.753e-05/0.3945, allocations: 20 kB / 439.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.3946, allocations: 8 kB / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009653/0.3955, allocations: 375.6 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.3978, allocations: 1.41 MB / 441.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008943/0.3987, allocations: 306.1 kB / 441.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004158/0.3992, allocations: 160.7 kB / 442.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.909e-05/0.3992, allocations: 4 kB / 442.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.3992, allocations: 30.56 kB / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.465e-06/0.3992, allocations: 0 / 442.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003407/0.4026, allocations: 1.244 MB / 443.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.4027, allocations: 110.8 kB / 443.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/0.4032, allocations: 357.6 kB / 443.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.4033, allocations: 33.7 kB / 443.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000258/0.4035, allocations: 252.4 kB / 444.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.668e-05/0.4036, allocations: 115 kB / 444.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.4038, allocations: 78.12 kB / 444.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.404, allocations: 354.7 kB / 444.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.4045, allocations: 174.5 kB / 444.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005551/0.405, allocations: 305.1 kB / 445.1 MB, free: 8.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008995/0.4059, allocations: 391.4 kB / 445.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4059, allocations: 4 kB / 445.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001134/0.4071, allocations: 497.3 kB / 446 MB, free: 8.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.4071, allocations: 8 kB / 446 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4071, allocations: 0 / 446 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.4071, allocations: 4 kB / 446 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008855/0.408, allocations: 211.8 kB / 446.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001882/0.4099, allocations: 1.465 MB / 447.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003621/0.4103, allocations: 44.08 kB / 447.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.4103, allocations: 16 kB / 447.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005925/0.4109, allocations: 268.9 kB / 448 MB, free: 5.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005664/0.4115, allocations: 301 kB / 448.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008071/0.4123, allocations: 363.5 kB / 448.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.893e-06/0.4123, allocations: 0 / 448.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001049/0.4133, allocations: 481.3 kB / 449.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.4133, allocations: 4 kB / 449.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4133, allocations: 7.938 kB / 449.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.4133, allocations: 7.938 kB / 449.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004959/0.4138, allocations: 115.8 kB / 449.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.4139, allocations: 4 kB / 449.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.4142, allocations: 44.11 kB / 449.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.4142, allocations: 19.94 kB / 449.3 MB, free: 4.555 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.0002356/0.4144, allocations: 203.2 kB / 449.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/0.4145, allocations: 43.72 kB / 449.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.4147, allocations: 52.19 kB / 449.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.4147, allocations: 11.97 kB / 449.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4147, allocations: 0 / 449.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.4147, allocations: 0 / 449.6 MB, free: 4.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.4165, allocations: 0.8405 MB / 450.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4165, allocations: 0 / 450.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.4169, allocations: 92 kB / 450.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.4169, allocations: 4 kB / 450.6 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/0.4169, allocations: 4 kB / 450.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.4169, allocations: 4 kB / 450.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4169, allocations: 0 / 450.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.4184, allocations: 0.6749 MB / 451.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001485/0.4185, allocations: 63.75 kB / 451.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.4186, allocations: 8 kB / 451.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.4189, allocations: 35.95 kB / 451.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.419, allocations: 27.95 kB / 451.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.419, allocations: 11.94 kB / 451.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003322/0.4193, allocations: 255.2 kB / 451.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4193, allocations: 0 / 451.6 MB, free: 2.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005857/0.4199, allocations: 136 kB / 451.8 MB, free: 2.012 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.001846/0.4218, allocations: 1.212 MB / 453 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.4237, allocations: 0.6532 MB / 453.6 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.4237, allocations: 4.062 kB / 453.6 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.4242, allocations: 183.7 kB / 453.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007293/0.4249, allocations: 106.3 kB / 453.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006948/0.4319, allocations: 4.026 MB / 457.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.4321, allocations: 216.2 kB / 458.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003259/0.4324, allocations: 63.22 kB / 458.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.4327, allocations: 143.4 kB / 458.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4327, allocations: 0 / 458.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04328/0.476, allocations: 9.348 MB / 467.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.61, allocations: 11.95 kB / 467.7 MB, free: 2.023 MB / 366.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 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.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_trunk_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.581281443010084]