Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 103.8 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.19/1.19, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 51.94 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06897/0.07003, allocations: 46.62 MB / 326.7 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003712/0.07377, allocations: 3.148 MB / 329.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.07523, allocations: 0.9865 MB / 330.8 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.07542, allocations: 11.94 kB / 330.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002914/0.07572, allocations: 75.42 kB / 330.9 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.07594, allocations: 87.33 kB / 331 MB, free: 472 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.07639, allocations: 211.7 kB / 331.2 MB, free: 260 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004235/0.07683, allocations: 0.4911 MB / 331.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.07707, allocations: 153.5 kB / 331.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.07725, allocations: 179.1 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.07744, allocations: 198.9 kB / 332.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.976e-05/0.0775, allocations: 24 kB / 332.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.487e-05/0.07756, allocations: 24 kB / 332.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.749e-05/0.07767, allocations: 83.67 kB / 332.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.07783, allocations: 206.7 kB / 332.5 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.07817, allocations: 466.2 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.07818, allocations: 3.938 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.07819, allocations: 0 / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.0782, allocations: 0 / 333 MB, free: 14.44 MB / 286.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.001098/0.0793, allocations: 0.7716 MB / 333.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.07934, allocations: 8.031 kB / 333.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.698e-05/0.07941, allocations: 70.72 kB / 333.8 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.834e-05/0.0795, allocations: 52.28 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.07987, allocations: 359.8 kB / 334.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.07991, allocations: 29.38 kB / 334.3 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.491e-05/0.07998, allocations: 44.28 kB / 334.3 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007841/0.08077, allocations: 450.5 kB / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.0808, allocations: 4 kB / 334.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.25e-05/0.08084, allocations: 16 kB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.08085, allocations: 12 kB / 334.8 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008726/0.08173, allocations: 371.6 kB / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.08352, allocations: 1.582 MB / 336.7 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/0.08427, allocations: 310.8 kB / 337 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.08467, allocations: 164.7 kB / 337.2 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.08471, allocations: 11.98 kB / 337.2 MB, free: 9.996 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.08474, allocations: 38.55 kB / 337.3 MB, free: 9.949 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.422e-06/0.08475, allocations: 0 / 337.3 MB, free: 9.949 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002837/0.08759, allocations: 1.388 MB / 338.6 MB, free: 8.469 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.08764, allocations: 81.11 kB / 338.7 MB, free: 8.371 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.08798, allocations: 361.7 kB / 339.1 MB, free: 8.008 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.08802, allocations: 33.7 kB / 339.1 MB, free: 7.969 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.08816, allocations: 243.9 kB / 339.3 MB, free: 7.727 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.167e-05/0.08824, allocations: 114.3 kB / 339.5 MB, free: 7.613 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.08836, allocations: 82.03 kB / 339.5 MB, free: 7.527 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.08847, allocations: 350.7 kB / 339.9 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/0.0889, allocations: 178.5 kB / 340.1 MB, free: 6.996 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004386/0.08935, allocations: 252.8 kB / 340.3 MB, free: 6.719 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007845/0.09014, allocations: 391.4 kB / 340.7 MB, free: 6.309 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.09015, allocations: 4 kB / 340.7 MB, free: 6.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009805/0.09114, allocations: 493.5 kB / 341.2 MB, free: 5.816 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.09116, allocations: 12 kB / 341.2 MB, free: 5.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.09118, allocations: 3.938 kB / 341.2 MB, free: 5.801 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.09119, allocations: 4 kB / 341.2 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007969/0.092, allocations: 211.7 kB / 341.4 MB, free: 5.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.09329, allocations: 1.462 MB / 342.9 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.09359, allocations: 43.92 kB / 342.9 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.09362, allocations: 12 kB / 342.9 MB, free: 3.941 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004572/0.09409, allocations: 276.9 kB / 343.2 MB, free: 3.668 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003945/0.09449, allocations: 236.8 kB / 343.4 MB, free: 3.406 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007012/0.0952, allocations: 375.4 kB / 343.8 MB, free: 3.012 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.543e-06/0.09521, allocations: 0 / 343.8 MB, free: 3.012 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000904/0.09612, allocations: 473 kB / 344.2 MB, free: 2.543 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/0.09614, allocations: 7.125 kB / 344.2 MB, free: 2.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.09615, allocations: 4 kB / 344.2 MB, free: 2.535 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.068e-06/0.09616, allocations: 4 kB / 344.3 MB, free: 2.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.09663, allocations: 115.9 kB / 344.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.09664, allocations: 4.156 kB / 344.4 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.09692, allocations: 39.95 kB / 344.4 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.09696, allocations: 19.94 kB / 344.4 MB, free: 2.355 MB / 286.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.0001231/0.09708, allocations: 204 kB / 344.6 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.09715, allocations: 43.52 kB / 344.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.213e-05/0.09724, allocations: 52.23 kB / 344.7 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.09725, allocations: 0 / 344.7 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.09726, allocations: 8 kB / 344.7 MB, free: 2.047 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.09727, allocations: 3.938 kB / 344.7 MB, free: 2.043 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.09871, allocations: 0.9104 MB / 345.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.09872, allocations: 7.922 kB / 345.7 MB, free: 1.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003973/0.09912, allocations: 87.88 kB / 345.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.09914, allocations: 0 / 345.7 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.09917, allocations: 12 kB / 345.7 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.09918, allocations: 8.125 kB / 345.8 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.09918, allocations: 0 / 345.8 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.1005, allocations: 0.6697 MB / 346.4 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.1006, allocations: 140.6 kB / 346.6 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.1006, allocations: 12 kB / 346.6 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.1009, allocations: 31.95 kB / 346.6 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.794e-05/0.101, allocations: 23.97 kB / 346.6 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.101, allocations: 12 kB / 346.6 MB, free: 20 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.1013, allocations: 247.2 kB / 346.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1013, allocations: 3.938 kB / 346.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004842/0.1018, allocations: 147.9 kB / 347 MB, free: 15.63 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.00149/0.1033, allocations: 1.219 MB / 348.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.1049, allocations: 0.6875 MB / 348.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.105, allocations: 4 kB / 348.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004089/0.1054, allocations: 175.8 kB / 349.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.106, allocations: 94.53 kB / 349.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005497/0.1115, allocations: 4.213 MB / 353.4 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.1118, allocations: 0.8234 MB / 354.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002572/0.1121, allocations: 63.23 kB / 354.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.1123, allocations: 139.4 kB / 354.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1123, allocations: 0 / 354.4 MB, free: 8.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01842/0.1307, allocations: 8.179 MB / 362.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.131, allocations: 227.7 kB / 362.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/1.983, allocations: 0 / 362.8 MB, free: 15.52 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches