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.0125/0.0125, allocations: 95 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002227/0.0002228, allocations: 4.281 kB / 307.8 MB, free: 0.7617 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08364/0.08388, allocations: 51.53 MB / 359.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003123/0.08704, allocations: 2.766 MB / 362.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.08879, allocations: 0.9662 MB / 363.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003181/0.08913, allocations: 15.88 kB / 363.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.08946, allocations: 67.48 kB / 363.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003022/0.08978, allocations: 79.41 kB / 363.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005307/0.09032, allocations: 207.2 kB / 363.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005751/0.0909, allocations: 495 kB / 363.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002841/0.09119, allocations: 157.2 kB / 364.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.09143, allocations: 163.1 kB / 364.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.0917, allocations: 171 kB / 364.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.942e-05/0.09176, allocations: 12 kB / 364.4 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.778e-05/0.09181, allocations: 16 kB / 364.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.487e-05/0.0919, allocations: 79.67 kB / 364.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001656/0.09207, allocations: 204.5 kB / 364.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003544/0.09243, allocations: 454.4 kB / 365.2 MB, free: 7.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.09245, allocations: 4 kB / 365.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09245, allocations: 0 / 365.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.09248, allocations: 4 kB / 365.2 MB, free: 7.371 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.001158/0.09364, allocations: 0.7055 MB / 365.9 MB, free: 6.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.09368, allocations: 8.031 kB / 365.9 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.337e-05/0.09378, allocations: 78.7 kB / 366 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.123e-05/0.09387, allocations: 48.38 kB / 366 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.09427, allocations: 351.7 kB / 366.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.09431, allocations: 33.36 kB / 366.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.111e-05/0.09438, allocations: 36.38 kB / 366.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009026/0.09528, allocations: 483.3 kB / 366.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.09532, allocations: 11.88 kB / 366.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.09536, allocations: 16 kB / 366.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.09538, allocations: 11.94 kB / 366.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.09643, allocations: 427.6 kB / 367.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.09855, allocations: 1.579 MB / 368.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007955/0.09935, allocations: 334.7 kB / 369.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.09981, allocations: 196.7 kB / 369.4 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.09985, allocations: 7.938 kB / 369.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.09988, allocations: 38.56 kB / 369.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.502e-06/0.09989, allocations: 0 / 369.5 MB, free: 2.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003242/0.1031, allocations: 1.51 MB / 371 MB, free: 1.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.1032, allocations: 102.8 kB / 371.1 MB, free: 1.078 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.1035, allocations: 365.6 kB / 371.5 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.1036, allocations: 33.7 kB / 371.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.1037, allocations: 239.9 kB / 371.7 MB, free: 448 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.165e-05/0.1038, allocations: 110.5 kB / 371.8 MB, free: 336 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-05/0.1039, allocations: 45.69 kB / 371.9 MB, free: 284 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1387/0.2425, allocations: 360.1 kB / 372.2 MB, free: 19.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006685/0.2432, allocations: 178.2 kB / 372.4 MB, free: 19.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007188/0.244, allocations: 282.8 kB / 372.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.2452, allocations: 436.5 kB / 373.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.2452, allocations: 1.156 kB / 373.1 MB, free: 19.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001474/0.2467, allocations: 0.5248 MB / 373.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.516e-05/0.2468, allocations: 149 kB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2468, allocations: 5.938 kB / 373.8 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.2468, allocations: 9.094 kB / 373.8 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009595/0.2478, allocations: 265.2 kB / 374.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.2492, allocations: 1.54 MB / 375.6 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003867/0.2496, allocations: 54.27 kB / 375.6 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.2497, allocations: 15.97 kB / 375.7 MB, free: 17.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.265e-06/0.2497, allocations: 4.125 kB / 375.7 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001025/0.2507, allocations: 444.5 kB / 376.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2507, allocations: 3.438 kB / 376.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.2507, allocations: 3.125 kB / 376.1 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004678/0.2512, allocations: 132.9 kB / 376.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.2512, allocations: 8.812 kB / 376.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003379/0.2516, allocations: 42.69 kB / 376.3 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.2516, allocations: 14.94 kB / 376.3 MB, free: 17.58 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.0002466/0.2519, allocations: 249.4 kB / 376.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.278e-05/0.252, allocations: 42.2 kB / 376.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.2521, allocations: 48.91 kB / 376.6 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2521, allocations: 2.75 kB / 376.6 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.2521, allocations: 2.953 kB / 376.6 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2521, allocations: 1.875 kB / 376.6 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.2538, allocations: 0.9613 MB / 377.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2538, allocations: 1.312 kB / 377.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000418/0.2542, allocations: 101.7 kB / 377.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.2543, allocations: 2.469 kB / 377.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.837e-05/0.2543, allocations: 6.438 kB / 377.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.2543, allocations: 2.562 kB / 377.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.2543, allocations: 7.219 kB / 377.7 MB, free: 17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.2558, allocations: 0.7456 MB / 378.5 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.256, allocations: 135.9 kB / 378.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.2561, allocations: 11.2 kB / 378.6 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/0.2564, allocations: 41.12 kB / 378.6 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.43e-05/0.2565, allocations: 31.61 kB / 378.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.2565, allocations: 7.5 kB / 378.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002995/0.2568, allocations: 258.3 kB / 378.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2568, allocations: 0 / 378.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006192/0.2575, allocations: 133.8 kB / 379.1 MB, free: 16.51 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.001826/0.2593, allocations: 1.272 MB / 380.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.2613, allocations: 0.8013 MB / 381.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2613, allocations: 0 / 381.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.2618, allocations: 215 kB / 381.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.2625, allocations: 89.3 kB / 381.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006055/0.2685, allocations: 4.387 MB / 385.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.2688, allocations: 0.8235 MB / 386.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002758/0.2691, allocations: 65.33 kB / 386.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.2693, allocations: 138.5 kB / 386.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.2693, allocations: 0 / 386.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.2898, allocations: 7.973 MB / 394.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/0.29, allocations: 214.7 kB / 395 MB, free: 8.879 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.096, allocations: 0 / 395 MB, free: 8.879 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