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) 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 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001212/0.001212, allocations: 197.3 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 47.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2496, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004581/0.2542, allocations: 3.119 MB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.2561, allocations: 0.9582 MB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.2563, allocations: 15.94 kB / 404.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003532/0.2567, allocations: 87.17 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.257, allocations: 107.1 kB / 404.5 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.2576, allocations: 223.6 kB / 404.7 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006016/0.2582, allocations: 0.5107 MB / 405.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.2585, allocations: 173.2 kB / 405.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.2588, allocations: 195.1 kB / 405.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000281/0.2591, allocations: 214.9 kB / 405.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.237e-05/0.2592, allocations: 43.94 kB / 405.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.18e-05/0.2592, allocations: 40 kB / 405.9 MB, free: 3.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.2594, allocations: 95.69 kB / 406 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002076/0.2596, allocations: 218.8 kB / 406.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006085/0.2602, allocations: 0.493 MB / 406.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2602, allocations: 3.984 kB / 406.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2602, allocations: 0 / 406.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2602, allocations: 0 / 406.7 MB, free: 2.301 MB / 318.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.001419/0.2616, allocations: 0.7791 MB / 407.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2617, allocations: 8.031 kB / 407.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.341e-05/0.2618, allocations: 74.72 kB / 407.6 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.337e-05/0.2619, allocations: 56.61 kB / 407.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005725/0.2625, allocations: 368 kB / 408 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.2625, allocations: 37.06 kB / 408 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-05/0.2626, allocations: 43.94 kB / 408.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009798/0.2636, allocations: 450.4 kB / 408.5 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.2636, allocations: 4 kB / 408.5 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.2637, allocations: 23.98 kB / 408.5 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.2637, allocations: 8 kB / 408.5 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2648, allocations: 367.7 kB / 408.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002379/0.2672, allocations: 1.575 MB / 410.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009342/0.2681, allocations: 314.6 kB / 410.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004776/0.2686, allocations: 160.8 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.2687, allocations: 8.484 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.31e-05/0.2687, allocations: 38.56 kB / 411 MB, free: 13.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.2687, allocations: 0 / 411 MB, free: 13.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003776/0.2725, allocations: 1.385 MB / 412.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.2726, allocations: 85.05 kB / 412.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004235/0.273, allocations: 353.7 kB / 412.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.2731, allocations: 33.7 kB / 412.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001924/0.2733, allocations: 244.5 kB / 413.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.2734, allocations: 130.9 kB / 413.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.2735, allocations: 74.12 kB / 413.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.2737, allocations: 350.7 kB / 413.6 MB, free: 11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000514/0.2743, allocations: 174.5 kB / 413.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.2749, allocations: 252.8 kB / 414 MB, free: 10.54 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.2759, allocations: 388 kB / 414.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2759, allocations: 0 / 414.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001292/0.2772, allocations: 496.9 kB / 414.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.2772, allocations: 8.219 kB / 414.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2773, allocations: 4 kB / 414.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.2773, allocations: 7.984 kB / 414.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.2783, allocations: 215.7 kB / 415.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.2805, allocations: 1.564 MB / 416.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.2809, allocations: 39.95 kB / 416.7 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.2809, allocations: 16 kB / 416.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006253/0.2816, allocations: 273 kB / 417 MB, free: 7.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005313/0.2821, allocations: 236.8 kB / 417.2 MB, free: 7.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009487/0.2831, allocations: 371.8 kB / 417.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.559e-06/0.2831, allocations: 4 kB / 417.6 MB, free: 6.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001174/0.2843, allocations: 476.9 kB / 418.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2843, allocations: 15.92 kB / 418.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.2843, allocations: 0 / 418.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.482e-06/0.2843, allocations: 4 kB / 418.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.2849, allocations: 124 kB / 418.2 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2849, allocations: 8 kB / 418.2 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000321/0.2852, allocations: 31.95 kB / 418.2 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.2852, allocations: 16 kB / 418.3 MB, free: 6.07 MB / 334.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.0001859/0.2854, allocations: 204.1 kB / 418.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.317e-05/0.2855, allocations: 39.7 kB / 418.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.2856, allocations: 52.25 kB / 418.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.2856, allocations: 4 kB / 418.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2856, allocations: 0 / 418.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.2857, allocations: 3.984 kB / 418.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00186/0.2875, allocations: 0.92 MB / 419.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.2875, allocations: 0 / 419.5 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004688/0.288, allocations: 87.88 kB / 419.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.288, allocations: 128 / 419.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.2881, allocations: 15.98 kB / 419.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2881, allocations: 4 kB / 419.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2881, allocations: 0 / 419.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.2897, allocations: 0.6677 MB / 420.3 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.2899, allocations: 140.9 kB / 420.4 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.56e-05/0.29, allocations: 11.98 kB / 420.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.2903, allocations: 27.97 kB / 420.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.952e-05/0.2904, allocations: 27.91 kB / 420.5 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.2904, allocations: 12 kB / 420.5 MB, free: 3.742 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002963/0.2907, allocations: 247.2 kB / 420.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2907, allocations: 4 kB / 420.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005745/0.2913, allocations: 136 kB / 420.8 MB, free: 3.363 MB / 334.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.002017/0.2933, allocations: 1.224 MB / 422.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002132/0.2955, allocations: 0.6991 MB / 422.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2955, allocations: 0 / 422.8 MB, free: 1.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005004/0.296, allocations: 183.8 kB / 422.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007175/0.2967, allocations: 106.3 kB / 423.1 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.3036, allocations: 4.023 MB / 427.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005062/0.3041, allocations: 0.8156 MB / 427.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002653/0.3044, allocations: 63.23 kB / 428 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.3046, allocations: 143.4 kB / 428.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3046, allocations: 0 / 428.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03677/0.3414, allocations: 8.73 MB / 436.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.46, allocations: 6.797 kB / 436.8 MB, free: 3.305 MB / 350.1 MB (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 --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) 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) Reference file matches