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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001364/0.001364, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07338/0.07338, allocations: 10.66 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.76/1.76, allocations: 205.3 MB / 226.9 MB, free: 7.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000865/0.000865, allocations: 96.8 kB / 277.3 MB, free: 5.438 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.704e-05/1.708e-05, allocations: 0 / 333.6 MB, free: 28.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1227, allocations: 50 MB / 383.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.567, allocations: 79.23 MB / 462.9 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.5673, allocations: 78.14 kB / 462.9 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02151/0.5889, allocations: 7.253 MB / 470.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5889, allocations: 4 kB / 470.2 MB, free: 14.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.133e-05/0.589, allocations: 24.09 kB / 470.2 MB, free: 14.89 MB / 346.7 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.00136/0.5903, allocations: 0.7294 MB / 470.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.5904, allocations: 12.03 kB / 471 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/0.5906, allocations: 59.25 kB / 471 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007786/0.5913, allocations: 434.3 kB / 471.4 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.5914, allocations: 12 kB / 471.5 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.663e-05/0.5915, allocations: 35.92 kB / 471.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006106/0.5921, allocations: 357.3 kB / 471.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007062/0.5928, allocations: 473.9 kB / 472.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.456e-05/0.5929, allocations: 19.02 kB / 472.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/0.5929, allocations: 0 / 472.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.5929, allocations: 16 kB / 472.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.5958, allocations: 1.713 MB / 474 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/0.5963, allocations: 260.1 kB / 474.3 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002364/0.5965, allocations: 174.5 kB / 474.5 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.198e-05/0.5966, allocations: 6.625 kB / 474.5 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004409/0.597, allocations: 250.6 kB / 474.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 1.953e-06/0.597, allocations: 0 / 474.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009393/0.598, allocations: 413 kB / 475.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/0.5981, allocations: 81.11 kB / 475.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005091/0.5986, allocations: 368.6 kB / 475.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.5986, allocations: 33.64 kB / 475.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002487/0.5989, allocations: 279.9 kB / 475.9 MB, free: 9.906 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.599, allocations: 135 kB / 476 MB, free: 9.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.5991, allocations: 0 / 476 MB, free: 9.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002496/0.5993, allocations: 364.5 kB / 476.4 MB, free: 9.449 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/0.5995, allocations: 149.5 kB / 476.5 MB, free: 9.352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004118/0.6, allocations: 314.2 kB / 476.8 MB, free: 9.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004254/0.6004, allocations: 213.8 kB / 477 MB, free: 8.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.6004, allocations: 4 kB / 477 MB, free: 8.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001032/0.6015, allocations: 0.6404 MB / 477.7 MB, free: 8.355 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.312e-05/0.6015, allocations: 35.7 kB / 477.7 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.6016, allocations: 8 kB / 477.7 MB, free: 8.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.6016, allocations: 8 kB / 477.7 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005245/0.6021, allocations: 131.7 kB / 477.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.6022, allocations: 15.94 kB / 477.9 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.6024, allocations: 51.42 kB / 477.9 MB, free: 8.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-05/0.6025, allocations: 37.92 kB / 477.9 MB, free: 8.078 MB / 346.7 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] processNoCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(protected = true ) "proper part of the output" type: Real ProcessBias.Y[3]:VARIABLE(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 ($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 () * 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.00027/0.6028, allocations: 180.8 kB / 478.1 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006982/0.6035, allocations: 443.7 kB / 478.6 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.6035, allocations: 47.44 kB / 478.6 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008464/0.6044, allocations: 477.4 kB / 479.1 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.6044, allocations: 0 / 479.1 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.6044, allocations: 4 kB / 479.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.6044, allocations: 0 / 479.1 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005571/0.605, allocations: 417.5 kB / 479.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.605, allocations: 0 / 479.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005608/0.6056, allocations: 91.28 kB / 479.6 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.6056, allocations: 7.891 kB / 479.6 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.6057, allocations: 15.17 kB / 479.6 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.6057, allocations: 0 / 479.6 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.6057, allocations: 4 kB / 479.6 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.6068, allocations: 0.6671 MB / 480.3 MB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.6069, allocations: 120.6 kB / 480.4 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.307e-05/0.607, allocations: 19.02 kB / 480.4 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.6071, allocations: 11.98 kB / 480.4 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.263e-05/0.6072, allocations: 26.77 kB / 480.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.001e-05/0.6073, allocations: 14.94 kB / 480.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003175/0.6076, allocations: 274.1 kB / 480.7 MB, free: 5.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6076, allocations: 0 / 480.7 MB, free: 5.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004834/0.6081, allocations: 99.77 kB / 480.8 MB, free: 5.609 MB / 346.7 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) * 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.001465/0.6096, allocations: 1.212 MB / 482 MB, free: 4.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007347/0.6103, allocations: 0.4939 MB / 482.5 MB, free: 4.129 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.6103, allocations: 4.125 kB / 482.5 MB, free: 4.125 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.6106, allocations: 257.1 kB / 482.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.6109, allocations: 34.2 kB / 482.8 MB, free: 3.906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.6127, allocations: 1.027 MB / 483.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006516/0.6134, allocations: 0.899 MB / 484.7 MB, free: 2.012 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002699/0.6137, allocations: 103.3 kB / 484.8 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.6139, allocations: 176.8 kB / 485 MB, free: 1.867 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.6139, allocations: 0 / 485 MB, free: 1.867 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.6455, allocations: 7.609 MB / 492.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.6458, allocations: 169.5 kB / 492.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.882, allocations: 0 / 492.8 MB, free: 10.07 MB / 362.7 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)