Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",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.006296/0.006296, allocations: 102.6 kB / 15.73 MB, free: 6.5 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.001577/0.001577, allocations: 200.9 kB / 16.68 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06367/0.06367, allocations: 10.75 MB / 280.7 MB, free: 10.41 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 67.91 kB / 390.4 MB, free: 5.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3182, allocations: 49.02 MB / 439.4 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.00333/0.3215, allocations: 2.179 MB / 441.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.3233, allocations: 1.04 MB / 442.6 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.3235, allocations: 14.75 kB / 442.6 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002715/0.3237, allocations: 91.88 kB / 442.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.3239, allocations: 73.36 kB / 442.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009089/0.3248, allocations: 323.8 kB / 443.1 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006389/0.3254, allocations: 0.5848 MB / 443.7 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.3256, allocations: 63.58 kB / 443.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.3258, allocations: 211.7 kB / 443.9 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.3262, allocations: 240.3 kB / 444.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.717e-05/0.3262, allocations: 34.31 kB / 444.2 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.3264, allocations: 110.5 kB / 444.3 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.3266, allocations: 161 kB / 444.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.3267, allocations: 217.6 kB / 444.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006783/0.3274, allocations: 0.508 MB / 445.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3274, allocations: 4 kB / 445.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3274, allocations: 0.5625 kB / 445.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.3274, allocations: 1.25 kB / 445.2 MB, free: 1.875 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001335/0.3288, allocations: 0.8641 MB / 446.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3288, allocations: 17.42 kB / 446.1 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.057e-05/0.3289, allocations: 78.42 kB / 446.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.677e-05/0.329, allocations: 61.83 kB / 446.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005522/0.3295, allocations: 443.6 kB / 446.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.3296, allocations: 28.81 kB / 446.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.217e-05/0.3297, allocations: 50.38 kB / 446.7 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008108/0.3305, allocations: 0.5075 MB / 447.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/0.3305, allocations: 15.77 kB / 447.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.007e-05/0.3305, allocations: 16.28 kB / 447.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.3306, allocations: 9 kB / 447.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006425/0.3312, allocations: 386.9 kB / 447.6 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002903/0.3341, allocations: 1.791 MB / 449.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005278/0.3346, allocations: 256 kB / 449.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.3349, allocations: 162.1 kB / 449.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.3349, allocations: 7.453 kB / 449.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004347/0.3354, allocations: 262.3 kB / 450.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 2.254e-06/0.3354, allocations: 0 / 450.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.001082/0.3365, allocations: 0.5753 MB / 450.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.3365, allocations: 82.61 kB / 450.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.3371, allocations: 0.4947 MB / 451.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.3372, allocations: 31.95 kB / 451.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.3374, allocations: 287.1 kB / 451.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.3375, allocations: 140 kB / 451.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.3377, allocations: 107.9 kB / 451.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.3379, allocations: 369.3 kB / 452.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.3382, allocations: 166.6 kB / 452.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004478/0.3386, allocations: 334.9 kB / 452.7 MB, free: 12.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002494/0.3411, allocations: 1.068 MB / 453.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3411, allocations: 1.188 kB / 453.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001285/0.3424, allocations: 0.7348 MB / 454.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/0.3425, allocations: 34.64 kB / 454.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.3425, allocations: 5.5 kB / 454.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.3425, allocations: 9.594 kB / 454.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005216/0.343, allocations: 148 kB / 454.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.3431, allocations: 7.781 kB / 454.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.3433, allocations: 68.44 kB / 454.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.3434, allocations: 24.59 kB / 454.8 MB, free: 11.42 MB / 334.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 0.0004581/0.3439, allocations: 282.8 kB / 455 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/0.3439, allocations: 59.53 kB / 455.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009309/0.3449, allocations: 0.5164 MB / 455.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3449, allocations: 2.938 kB / 455.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3449, allocations: 1.125 kB / 455.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.3449, allocations: 7.969 kB / 455.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005521/0.3454, allocations: 470.6 kB / 456.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3454, allocations: 1.719 kB / 456.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/0.3459, allocations: 87.28 kB / 456.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.3459, allocations: 1.125 kB / 456.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.462e-05/0.346, allocations: 15.42 kB / 456.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.346, allocations: 5.281 kB / 456.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.346, allocations: 1.312 kB / 456.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.3471, allocations: 0.7228 MB / 456.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.3472, allocations: 129.3 kB / 457 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.396e-05/0.3473, allocations: 19.8 kB / 457.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.3475, allocations: 15.36 kB / 457.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.3476, allocations: 26.19 kB / 457.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/0.3476, allocations: 12.75 kB / 457.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004178/0.348, allocations: 341.5 kB / 457.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.348, allocations: 0 / 457.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005243/0.3485, allocations: 121.5 kB / 457.6 MB, free: 9.652 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * 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.001558/0.3501, allocations: 1.3 MB / 458.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008683/0.351, allocations: 0.5008 MB / 459.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.351, allocations: 0 / 459.4 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003329/0.3513, allocations: 240.1 kB / 459.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.3516, allocations: 56.42 kB / 459.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006731/0.3584, allocations: 4.956 MB / 464.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006183/0.359, allocations: 0.882 MB / 465.5 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003017/0.3593, allocations: 108.1 kB / 465.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.3596, allocations: 183.4 kB / 465.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of SimCode: time 1.653e-06/0.3596, allocations: 0 / 465.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.4006, allocations: 9.054 MB / 474.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.093/9.494, allocations: 7.859 kB / 474.8 MB, free: 8.906 MB / 350.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)