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.002131/0.002131, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002032/0.002032, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.028/2.028, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2437, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00423/0.248, allocations: 3.112 MB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.2499, allocations: 1.005 MB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.2502, allocations: 11.94 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003697/0.2505, allocations: 87.17 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.2508, allocations: 111.1 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005384/0.2514, allocations: 227.3 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004973/0.2519, allocations: 0.5146 MB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00029/0.2522, allocations: 173.2 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.2524, allocations: 203.1 kB / 414.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.2526, allocations: 210.9 kB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.2527, allocations: 40 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.2528, allocations: 40 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.2529, allocations: 99.67 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001756/0.2531, allocations: 218.8 kB / 414.8 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000477/0.2536, allocations: 0.493 MB / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2536, allocations: 0 / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2536, allocations: 0 / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.2536, allocations: 0 / 415.3 MB, free: 11 MB / 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.001261/0.2549, allocations: 0.7791 MB / 416 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2549, allocations: 16.02 kB / 416.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.575e-05/0.255, allocations: 74.72 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.917e-05/0.2551, allocations: 52.61 kB / 416.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/0.2556, allocations: 372 kB / 416.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/0.2556, allocations: 29.38 kB / 416.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-05/0.2557, allocations: 40.38 kB / 416.6 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008959/0.2566, allocations: 459.3 kB / 417.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.2567, allocations: 15.89 kB / 417.1 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.2567, allocations: 12 kB / 417.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2567, allocations: 8 kB / 417.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.2578, allocations: 379.6 kB / 417.5 MB, free: 8.664 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.2599, allocations: 1.556 MB / 419 MB, free: 7.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008137/0.2607, allocations: 314.2 kB / 419.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004317/0.2611, allocations: 168.6 kB / 419.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.755e-05/0.2612, allocations: 8 kB / 419.5 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.2612, allocations: 30.56 kB / 419.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.864e-06/0.2612, allocations: 0 / 419.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003215/0.2644, allocations: 1.401 MB / 420.9 MB, free: 4.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.2645, allocations: 110.8 kB / 421 MB, free: 4.852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.2649, allocations: 357.6 kB / 421.4 MB, free: 4.496 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.2649, allocations: 29.7 kB / 421.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.2651, allocations: 248.3 kB / 421.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.613e-05/0.2651, allocations: 126.9 kB / 421.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.2653, allocations: 78.12 kB / 421.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.2654, allocations: 354.7 kB / 422.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004738/0.2659, allocations: 170.5 kB / 422.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.2664, allocations: 257.7 kB / 422.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000889/0.2673, allocations: 388 kB / 423 MB, free: 2.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2673, allocations: 4 kB / 423 MB, free: 2.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001106/0.2684, allocations: 497 kB / 423.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.2685, allocations: 7.984 kB / 423.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.2685, allocations: 4 kB / 423.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.2685, allocations: 4 kB / 423.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009107/0.2694, allocations: 211.8 kB / 423.7 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.2711, allocations: 1.576 MB / 425.3 MB, free: 368 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003425/0.2714, allocations: 31.97 kB / 425.3 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.2715, allocations: 16.09 kB / 425.3 MB, free: 320 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005163/0.272, allocations: 276.9 kB / 425.6 MB, free: 40 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004779/0.2725, allocations: 245.7 kB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000801/0.2733, allocations: 371.7 kB / 426.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.2733, allocations: 4 kB / 426.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001024/0.2743, allocations: 468.9 kB / 426.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2744, allocations: 8 kB / 426.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.2744, allocations: 4.219 kB / 426.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.789e-06/0.2744, allocations: 4 kB / 426.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.2749, allocations: 127.7 kB / 426.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.2749, allocations: 8 kB / 426.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.2752, allocations: 35.97 kB / 426.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.2753, allocations: 8 kB / 426.9 MB, free: 14.71 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.0001411/0.2754, allocations: 212.1 kB / 427.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.976e-05/0.2755, allocations: 43.72 kB / 427.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.226e-05/0.2756, allocations: 48.19 kB / 427.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2756, allocations: 4 kB / 427.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2756, allocations: 0 / 427.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2756, allocations: 0 / 427.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.2773, allocations: 0.9155 MB / 428.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2773, allocations: 7.938 kB / 428.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004422/0.2777, allocations: 84 kB / 428.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.223e-06/0.2777, allocations: 4 kB / 428.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.2778, allocations: 8 kB / 428.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.2778, allocations: 3.938 kB / 428.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2778, allocations: 4 kB / 428.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.2793, allocations: 0.6711 MB / 428.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.2794, allocations: 140.8 kB / 429 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.328e-05/0.2795, allocations: 4 kB / 429 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003167/0.2798, allocations: 47.83 kB / 429.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.279e-05/0.2799, allocations: 27.97 kB / 429.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.2799, allocations: 4 kB / 429.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002536/0.2802, allocations: 255.1 kB / 429.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2802, allocations: 0 / 429.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005548/0.2808, allocations: 136 kB / 429.5 MB, free: 11.99 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.001873/0.2826, allocations: 1.216 MB / 430.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0023/0.285, allocations: 0.691 MB / 431.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.285, allocations: 0 / 431.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004814/0.2855, allocations: 188.4 kB / 431.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007691/0.2862, allocations: 100.5 kB / 431.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006748/0.293, allocations: 4.007 MB / 435.7 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003934/0.2934, allocations: 0.8233 MB / 436.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00031/0.2938, allocations: 59.23 kB / 436.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002112/0.294, allocations: 143.4 kB / 436.7 MB, free: 4.551 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.294, allocations: 0 / 436.7 MB, free: 4.551 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.3237, allocations: 8.679 MB / 445.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.59, allocations: 14.8 kB / 445.4 MB, free: 11.98 MB / 366.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 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.csv","/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