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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00151/0.00151, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.844/1.844, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 55.94 kB / 307 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1039, allocations: 50.53 MB / 357.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004736/0.1086, allocations: 3.118 MB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.1108, allocations: 0.9933 MB / 361.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003663/0.1111, allocations: 15.94 kB / 361.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003558/0.1115, allocations: 87.17 kB / 361.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003401/0.1119, allocations: 107.1 kB / 361.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009067/0.1128, allocations: 227.7 kB / 362.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008637/0.1137, allocations: 0.5068 MB / 362.6 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004428/0.1141, allocations: 177.2 kB / 362.8 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004146/0.1146, allocations: 191.2 kB / 363 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004031/0.115, allocations: 210.9 kB / 363.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1151, allocations: 40 kB / 363.2 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.446e-05/0.1152, allocations: 40 kB / 363.3 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.1153, allocations: 95.69 kB / 363.3 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002317/0.1156, allocations: 226.7 kB / 363.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005082/0.1161, allocations: 490.5 kB / 364 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1161, allocations: 0 / 364 MB, free: 7.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1161, allocations: 0 / 364 MB, free: 7.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.1161, allocations: 3.938 kB / 364.1 MB, free: 7.418 MB / 302.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.00131/0.1174, allocations: 0.7639 MB / 364.8 MB, free: 6.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.1175, allocations: 8.031 kB / 364.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.821e-05/0.1176, allocations: 70.72 kB / 364.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.061e-05/0.1177, allocations: 56.36 kB / 364.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.1181, allocations: 347.7 kB / 365.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.1181, allocations: 29.38 kB / 365.3 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.1182, allocations: 44.36 kB / 365.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008838/0.1191, allocations: 463.3 kB / 365.8 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.1191, allocations: 7.844 kB / 365.8 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/0.1192, allocations: 16 kB / 365.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.1192, allocations: 11.98 kB / 365.8 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009795/0.1202, allocations: 375.7 kB / 366.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1222, allocations: 1.571 MB / 367.8 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007931/0.123, allocations: 312.3 kB / 368.1 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.1235, allocations: 172.6 kB / 368.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.1235, allocations: 0 / 368.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1236, allocations: 42.55 kB / 368.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.172e-06/0.1236, allocations: 0 / 368.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003267/0.1268, allocations: 1.381 MB / 369.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.44e-05/0.1269, allocations: 106.8 kB / 369.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.1273, allocations: 357.6 kB / 370.1 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.76e-05/0.1273, allocations: 33.7 kB / 370.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.1275, allocations: 236 kB / 370.4 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.582e-05/0.1276, allocations: 118.3 kB / 370.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.1277, allocations: 82.03 kB / 370.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1278, allocations: 350.7 kB / 370.9 MB, free: 144 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1855/0.3134, allocations: 174.6 kB / 371.1 MB, free: 20.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/0.3141, allocations: 252.9 kB / 371.4 MB, free: 20.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009786/0.3151, allocations: 390.2 kB / 371.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3151, allocations: 1.094 kB / 371.7 MB, free: 20.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00118/0.3163, allocations: 491.4 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3163, allocations: 9.484 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.3163, allocations: 2.594 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.3164, allocations: 3.984 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.3174, allocations: 216.2 kB / 372.4 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.3188, allocations: 1.573 MB / 374 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003795/0.3192, allocations: 39.28 kB / 374.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3193, allocations: 18.69 kB / 374.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005581/0.3198, allocations: 272.1 kB / 374.3 MB, free: 18.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004936/0.3203, allocations: 247.8 kB / 374.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008646/0.3212, allocations: 368.5 kB / 374.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.893e-06/0.3212, allocations: 448 / 374.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001061/0.3223, allocations: 470.8 kB / 375.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.3223, allocations: 6.156 kB / 375.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3223, allocations: 6.906 kB / 375.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.521e-06/0.3223, allocations: 8.125 kB / 375.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/0.3228, allocations: 116.9 kB / 375.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.3228, allocations: 4.125 kB / 375.5 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.3232, allocations: 36.75 kB / 375.6 MB, free: 18.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.3232, allocations: 15 kB / 375.6 MB, free: 18.14 MB / 302.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.0001245/0.3233, allocations: 219.8 kB / 375.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.376e-05/0.3234, allocations: 44.91 kB / 375.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.254e-05/0.3235, allocations: 47.09 kB / 375.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3235, allocations: 2.75 kB / 375.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3235, allocations: 1.375 kB / 375.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.3235, allocations: 2.062 kB / 375.9 MB, free: 17.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.3251, allocations: 0.9132 MB / 376.8 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.3252, allocations: 3.469 kB / 376.8 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000433/0.3256, allocations: 90.67 kB / 376.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3256, allocations: 4.219 kB / 376.9 MB, free: 17.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.3256, allocations: 7.812 kB / 376.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.3257, allocations: 2.688 kB / 376.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3257, allocations: 1.344 kB / 376.9 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.3272, allocations: 0.677 MB / 377.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.3273, allocations: 135.4 kB / 377.7 MB, free: 16.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.999e-05/0.3274, allocations: 7.688 kB / 377.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.3277, allocations: 36.08 kB / 377.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.967e-05/0.3278, allocations: 30.47 kB / 377.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.071e-05/0.3278, allocations: 12.48 kB / 377.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002802/0.3281, allocations: 245.5 kB / 378.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 5e-07/0.3281, allocations: 0.875 kB / 378.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005644/0.3287, allocations: 137.7 kB / 378.2 MB, free: 16.72 MB / 302.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.001596/0.3303, allocations: 1.206 MB / 379.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.3322, allocations: 0.7077 MB / 380.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3323, allocations: 1.062 kB / 380.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004556/0.3327, allocations: 186.8 kB / 380.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.3335, allocations: 111.5 kB / 380.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00609/0.3396, allocations: 4.046 MB / 384.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.34, allocations: 0.8157 MB / 385.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003321/0.3403, allocations: 64.59 kB / 385.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002172/0.3406, allocations: 142.2 kB / 385.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3406, allocations: 0 / 385.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.3695, allocations: 8.54 MB / 394 MB, free: 9.145 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.11, allocations: 0.5938 kB / 394 MB, free: 9.145 MB / 302.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches