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.002147/0.002148, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002179/0.002179, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.057/2.057, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 59.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2915, allocations: 50.55 MB / 408.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004853/0.2964, allocations: 3.124 MB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.2985, allocations: 0.997 MB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000261/0.2988, allocations: 15.88 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003868/0.2992, allocations: 79.25 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.2995, allocations: 103.1 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005943/0.3001, allocations: 235.6 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005696/0.3007, allocations: 0.5107 MB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.301, allocations: 177.2 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.3013, allocations: 191.2 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.3016, allocations: 210.9 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.3016, allocations: 40 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.291e-05/0.3017, allocations: 40 kB / 414.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.3018, allocations: 103.7 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000191/0.302, allocations: 210.8 kB / 414.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006079/0.3026, allocations: 0.493 MB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3027, allocations: 7.938 kB / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3027, allocations: 0 / 415.3 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.3027, allocations: 0 / 415.3 MB, free: 10.96 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.001346/0.304, allocations: 0.7791 MB / 416 MB, free: 10.13 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3041, allocations: 12.03 kB / 416 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.16e-05/0.3042, allocations: 74.66 kB / 416.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.547e-05/0.3043, allocations: 52.61 kB / 416.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005741/0.3049, allocations: 372 kB / 416.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.3049, allocations: 29.38 kB / 416.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.851e-05/0.305, allocations: 40.38 kB / 416.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009045/0.3059, allocations: 463.3 kB / 417.1 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.3059, allocations: 3.953 kB / 417.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.306, allocations: 16 kB / 417.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.306, allocations: 12 kB / 417.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000984/0.307, allocations: 375.6 kB / 417.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.3092, allocations: 1.56 MB / 419 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008532/0.3101, allocations: 317.5 kB / 419.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004446/0.3105, allocations: 172.7 kB / 419.5 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.3106, allocations: 4 kB / 419.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.3106, allocations: 34.56 kB / 419.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 4.138e-06/0.3106, allocations: 0 / 419.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003277/0.3139, allocations: 1.389 MB / 420.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/0.314, allocations: 110.8 kB / 421 MB, free: 4.824 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.3145, allocations: 357.6 kB / 421.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.3145, allocations: 29.7 kB / 421.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.3147, allocations: 248.3 kB / 421.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.3148, allocations: 127.1 kB / 421.8 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.315, allocations: 74.12 kB / 421.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3152, allocations: 354.7 kB / 422.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004588/0.3156, allocations: 170.5 kB / 422.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.3162, allocations: 261.6 kB / 422.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008945/0.3171, allocations: 392 kB / 423 MB, free: 2.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3171, allocations: 0 / 423 MB, free: 2.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001112/0.3182, allocations: 0.4931 MB / 423.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3183, allocations: 4 kB / 423.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3183, allocations: 4 kB / 423.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.3183, allocations: 4 kB / 423.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/0.3192, allocations: 207.9 kB / 423.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/0.3209, allocations: 1.576 MB / 425.3 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.3213, allocations: 39.98 kB / 425.3 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.3213, allocations: 20.09 kB / 425.3 MB, free: 280 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005263/0.3219, allocations: 268.9 kB / 425.6 MB, free: 8 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005012/0.3224, allocations: 249.7 kB / 425.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007572/0.3231, allocations: 367.7 kB / 426.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.493e-06/0.3232, allocations: 0 / 426.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009719/0.3241, allocations: 472.9 kB / 426.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.3242, allocations: 12.16 kB / 426.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-06/0.3242, allocations: 4 kB / 426.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.095e-06/0.3242, allocations: 4 kB / 426.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004734/0.3247, allocations: 123.8 kB / 426.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3247, allocations: 7.984 kB / 426.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.325, allocations: 39.95 kB / 426.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.24e-05/0.325, allocations: 12 kB / 426.9 MB, free: 14.67 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.0001799/0.3252, allocations: 208.1 kB / 427.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.3253, allocations: 43.72 kB / 427.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.847e-05/0.3254, allocations: 44.19 kB / 427.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3254, allocations: 4 kB / 427.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3254, allocations: 0 / 427.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3254, allocations: 3.984 kB / 427.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.3271, allocations: 0.9154 MB / 428.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3271, allocations: 4.125 kB / 428.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003995/0.3275, allocations: 83.88 kB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.26e-05/0.3275, allocations: 4 kB / 428.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.3276, allocations: 12 kB / 428.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.3276, allocations: 0 / 428.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.3276, allocations: 7.984 kB / 428.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.329, allocations: 0.6749 MB / 428.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.3292, allocations: 132.9 kB / 429 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.3292, allocations: 15.94 kB / 429 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.3295, allocations: 35.95 kB / 429 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/0.3296, allocations: 23.97 kB / 429.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.3297, allocations: 12.12 kB / 429.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000303/0.33, allocations: 255.1 kB / 429.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.33, allocations: 0 / 429.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005916/0.3306, allocations: 139.9 kB / 429.5 MB, free: 11.95 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.002053/0.3326, allocations: 1.212 MB / 430.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.3346, allocations: 0.6872 MB / 431.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3347, allocations: 0 / 431.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.3351, allocations: 188.4 kB / 431.5 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006481/0.3358, allocations: 95.45 kB / 431.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006981/0.3428, allocations: 4.01 MB / 435.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005281/0.3433, allocations: 0.8234 MB / 436.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002802/0.3436, allocations: 59.23 kB / 436.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.3439, allocations: 139.4 kB / 436.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3439, allocations: 0 / 436.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03752/0.3814, allocations: 8.692 MB / 445.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/12.95, allocations: 9.344 kB / 445.4 MB, free: 11.95 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.1.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