Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.TestD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.0007517/0.0007517, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008092/0.0008092, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.205/1.205, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05199/0.05199, allocations: 10.75 MB / 281.1 MB, free: 10.55 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.0004248/0.0004248, allocations: 12 kB / 341.7 MB, free: 23.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07079/0.07122, allocations: 50 MB / 391.7 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_bias): time 0.001908/0.07316, allocations: 1.785 MB / 393.5 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.07448, allocations: 0.9676 MB / 394.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.07461, allocations: 11.88 kB / 394.5 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.07482, allocations: 67.59 kB / 394.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001031/0.07493, allocations: 59.7 kB / 394.6 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.07557, allocations: 251.5 kB / 394.9 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004665/0.07604, allocations: 0.4966 MB / 395.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.07619, allocations: 73 kB / 395.4 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001741/0.07637, allocations: 183.2 kB / 395.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.07663, allocations: 219.1 kB / 395.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.07668, allocations: 16 kB / 395.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.07681, allocations: 83.86 kB / 395.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.07695, allocations: 135.6 kB / 396.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.176e-05/0.07703, allocations: 97.39 kB / 396.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.07734, allocations: 351.5 kB / 396.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.07735, allocations: 0 / 396.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.07736, allocations: 0 / 396.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.07737, allocations: 7.938 kB / 396.5 MB, free: 0.8555 MB / 286.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.0009898/0.07836, allocations: 0.765 MB / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.0784, allocations: 8.031 kB / 397.3 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.158e-05/0.07849, allocations: 90.47 kB / 397.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.216e-05/0.07858, allocations: 59.25 kB / 397.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/0.07903, allocations: 392.9 kB / 397.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.07907, allocations: 29 kB / 397.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.378e-05/0.07914, allocations: 51.84 kB / 397.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.07984, allocations: 0.5044 MB / 398.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.07987, allocations: 11.91 kB / 398.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.07991, allocations: 16 kB / 398.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.07993, allocations: 11.95 kB / 398.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005916/0.08052, allocations: 395.7 kB / 398.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002313/0.08284, allocations: 1.791 MB / 400.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004228/0.08328, allocations: 270.4 kB / 400.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.08354, allocations: 188.6 kB / 401.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.08357, allocations: 4.266 kB / 401.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003282/0.08391, allocations: 256.9 kB / 401.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.776e-06/0.08392, allocations: 0 / 401.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.0008403/0.08477, allocations: 0.5896 MB / 401.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/0.08482, allocations: 81.11 kB / 402 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004375/0.08526, allocations: 493.7 kB / 402.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.0853, allocations: 29.7 kB / 402.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.08547, allocations: 276 kB / 402.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.839e-05/0.08557, allocations: 138 kB / 402.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.0856, allocations: 12 kB / 402.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.08573, allocations: 366.8 kB / 403.3 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002483/0.08599, allocations: 169.1 kB / 403.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.08633, allocations: 329.8 kB / 403.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.08667, allocations: 262.8 kB / 404 MB, free: 8.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.08668, allocations: 4 kB / 404 MB, free: 8.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009452/0.08763, allocations: 0.7262 MB / 404.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.08767, allocations: 36.67 kB / 404.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.08769, allocations: 4 kB / 404.8 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.08771, allocations: 12 kB / 404.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004528/0.08817, allocations: 135.7 kB / 404.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.08819, allocations: 8.438 kB / 404.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.08841, allocations: 75.34 kB / 405 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.08845, allocations: 27.98 kB / 405 MB, free: 7.945 MB / 302.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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] 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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,$PRE.Disturbance.nextEvent,Disturbance.nextEvent,Disturbance.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002874/0.08874, allocations: 282.4 kB / 405.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.129e-05/0.08881, allocations: 51.39 kB / 405.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007561/0.08957, allocations: 0.5178 MB / 405.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.08959, allocations: 4 kB / 405.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.0896, allocations: 0 / 405.9 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.08961, allocations: 3.984 kB / 405.9 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004167/0.09003, allocations: 469.1 kB / 406.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.09004, allocations: 3.984 kB / 406.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004421/0.09049, allocations: 91.83 kB / 406.4 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.0905, allocations: 3.953 kB / 406.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.386e-05/0.09055, allocations: 15.98 kB / 406.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.09056, allocations: 8 kB / 406.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.09057, allocations: 4 kB / 406.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000918/0.09149, allocations: 0.7158 MB / 407.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.64e-05/0.09158, allocations: 128.5 kB / 407.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.87e-05/0.09166, allocations: 19.95 kB / 407.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.0918, allocations: 23.92 kB / 407.3 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.358e-05/0.09187, allocations: 19.97 kB / 407.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.0919, allocations: 15.98 kB / 407.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002999/0.09221, allocations: 327.1 kB / 407.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09221, allocations: 0 / 407.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003534/0.09257, allocations: 111.8 kB / 407.8 MB, free: 5.043 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001207/0.09378, allocations: 1.304 MB / 409.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006957/0.09449, allocations: 0.5432 MB / 409.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.0945, allocations: 0 / 409.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.09481, allocations: 272.1 kB / 409.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.0951, allocations: 55.62 kB / 410 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003952/0.09906, allocations: 3.511 MB / 413.5 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.09947, allocations: 0.8859 MB / 414.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000242/0.09972, allocations: 108.1 kB / 414.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.09993, allocations: 183.4 kB / 414.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09994, allocations: 3.938 kB / 414.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01776/0.1177, allocations: 8.621 MB / 423.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001872/0.1179, allocations: 203.3 kB / 423.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/1.942, allocations: 0 / 423.5 MB, free: 5.203 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe 2>&1) Environment - environmentSimulation: