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.001649/0.00165, allocations: 107.2 kB / 17.06 MB, free: 5.98 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.002017/0.002017, allocations: 198.8 kB / 18 MB, free: 5.059 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.406/1.406, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 43.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3187, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005173/0.3239, allocations: 3.12 MB / 403.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00249/0.3264, allocations: 0.9622 MB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005652/0.327, allocations: 19.88 kB / 404.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004678/0.3275, allocations: 83.19 kB / 404.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004658/0.328, allocations: 103.1 kB / 404.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007041/0.3287, allocations: 231.3 kB / 404.7 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007465/0.3295, allocations: 0.5185 MB / 405.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000355/0.3299, allocations: 165.2 kB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003297/0.3302, allocations: 199.1 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003407/0.3306, allocations: 203 kB / 405.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.867e-05/0.3307, allocations: 40 kB / 405.8 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.778e-05/0.3307, allocations: 40 kB / 405.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.3309, allocations: 111.5 kB / 406 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.3311, allocations: 218.8 kB / 406.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006124/0.3317, allocations: 495.8 kB / 406.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3318, allocations: 0 / 406.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.3318, allocations: 0 / 406.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.3318, allocations: 7.938 kB / 406.7 MB, free: 2.281 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.001556/0.3334, allocations: 0.759 MB / 407.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3334, allocations: 12.03 kB / 407.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.56e-05/0.3335, allocations: 74.72 kB / 407.5 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.3336, allocations: 52.28 kB / 407.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000663/0.3343, allocations: 371.7 kB / 408 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/0.3343, allocations: 41.05 kB / 408 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.447e-05/0.3344, allocations: 39.91 kB / 408 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009395/0.3354, allocations: 446.4 kB / 408.5 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.3354, allocations: 3.938 kB / 408.5 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.3354, allocations: 16 kB / 408.5 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3355, allocations: 8 kB / 408.5 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.3365, allocations: 375.7 kB / 408.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.3387, allocations: 1.575 MB / 410.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008386/0.3396, allocations: 310.6 kB / 410.7 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004475/0.3401, allocations: 164.8 kB / 410.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.3401, allocations: 8.5 kB / 410.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.3401, allocations: 30.56 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.704e-06/0.3402, allocations: 4 kB / 410.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003384/0.3435, allocations: 1.372 MB / 412.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.3436, allocations: 85.05 kB / 412.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.344, allocations: 361.5 kB / 412.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.3441, allocations: 29.7 kB / 412.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.3442, allocations: 243.8 kB / 413 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.477e-05/0.3443, allocations: 122.4 kB / 413.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.3445, allocations: 74.14 kB / 413.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.3446, allocations: 362.7 kB / 413.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004668/0.3451, allocations: 166.5 kB / 413.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005416/0.3456, allocations: 244.8 kB / 414 MB, free: 10.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009092/0.3466, allocations: 396 kB / 414.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3466, allocations: 0 / 414.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001138/0.3477, allocations: 0.4889 MB / 414.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3477, allocations: 8 kB / 414.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3478, allocations: 7.938 kB / 414.9 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.3478, allocations: 8 kB / 414.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009028/0.3487, allocations: 207.9 kB / 415.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/0.3505, allocations: 1.572 MB / 416.6 MB, free: 7.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003717/0.3509, allocations: 36.09 kB / 416.7 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.3509, allocations: 19.98 kB / 416.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005409/0.3514, allocations: 268.9 kB / 417 MB, free: 7.406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004631/0.3519, allocations: 240.8 kB / 417.2 MB, free: 7.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008114/0.3527, allocations: 371.7 kB / 417.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.685e-06/0.3528, allocations: 0 / 417.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001052/0.3538, allocations: 476.8 kB / 418 MB, free: 6.281 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.3538, allocations: 7.938 kB / 418 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3539, allocations: 4 kB / 418 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.991e-06/0.3539, allocations: 4 kB / 418 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.3544, allocations: 119.8 kB / 418.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3544, allocations: 4 kB / 418.2 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003356/0.3547, allocations: 40.12 kB / 418.2 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.3548, allocations: 16 kB / 418.2 MB, free: 6.09 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.0001587/0.3549, allocations: 200.2 kB / 418.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.479e-05/0.355, allocations: 43.47 kB / 418.5 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.3551, allocations: 48.19 kB / 418.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3551, allocations: 4 kB / 418.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3551, allocations: 0 / 418.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3551, allocations: 0 / 418.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.3568, allocations: 0.9239 MB / 419.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3568, allocations: 0 / 419.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004507/0.3573, allocations: 87.88 kB / 419.5 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.3573, allocations: 4 kB / 419.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.3573, allocations: 8 kB / 419.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3573, allocations: 0 / 419.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3574, allocations: 4 kB / 419.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.3588, allocations: 0.6677 MB / 420.2 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.359, allocations: 136.7 kB / 420.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.759e-05/0.359, allocations: 8 kB / 420.3 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.3593, allocations: 35.95 kB / 420.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.182e-05/0.3594, allocations: 27.91 kB / 420.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.3594, allocations: 12 kB / 420.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002499/0.3597, allocations: 243.2 kB / 420.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3597, allocations: 0 / 420.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005473/0.3603, allocations: 140 kB / 420.8 MB, free: 3.395 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.001713/0.362, allocations: 1.223 MB / 422 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.3639, allocations: 0.6871 MB / 422.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.364, allocations: 4.438 kB / 422.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004716/0.3644, allocations: 187.7 kB / 422.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006538/0.3651, allocations: 107.4 kB / 423 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006162/0.3713, allocations: 4.001 MB / 427 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.3717, allocations: 0.8195 MB / 427.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002818/0.372, allocations: 67.23 kB / 427.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.3722, allocations: 139.4 kB / 428 MB, free: 11.96 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3722, allocations: 0 / 428 MB, free: 11.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03686/0.4091, allocations: 8.729 MB / 436.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.03, allocations: 11.98 kB / 436.7 MB, free: 3.352 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches