Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.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.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",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.00166/0.001661, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07132/0.07132, allocations: 10.66 MB / 23.92 MB, free: 1.379 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.2 MB / 232.1 MB, free: 12.82 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008645/0.0008645, allocations: 93.03 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.756e-05/3.758e-05, allocations: 3.984 kB / 340.6 MB, free: 3.516 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3209, allocations: 49.98 MB / 390.6 MB, free: 35.72 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.4381, allocations: 77.67 MB / 468.2 MB, free: 5.941 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.4384, allocations: 79.95 kB / 468.3 MB, free: 5.863 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.004539/0.4429, allocations: 1.527 MB / 469.8 MB, free: 4.336 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.553e-06/0.443, allocations: 4 kB / 469.8 MB, free: 4.332 MB / 346.8 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.443, allocations: 4 kB / 469.9 MB, free: 4.328 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006133/0.4436, allocations: 470 kB / 470.3 MB, free: 3.809 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.4437, allocations: 12.03 kB / 470.3 MB, free: 3.797 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.219e-05/0.4438, allocations: 42.48 kB / 470.4 MB, free: 3.746 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.069e-05/0.4438, allocations: 15.86 kB / 470.4 MB, free: 3.73 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.4442, allocations: 235.5 kB / 470.6 MB, free: 3.461 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.4443, allocations: 67.34 kB / 470.7 MB, free: 3.383 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.4444, allocations: 4 kB / 470.7 MB, free: 3.379 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.4445, allocations: 74.78 kB / 470.8 MB, free: 3.301 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.4445, allocations: 0 / 470.8 MB, free: 3.301 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.4446, allocations: 7.953 kB / 470.8 MB, free: 3.293 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.4446, allocations: 0 / 470.8 MB, free: 3.293 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.884e-05/0.4447, allocations: 24 kB / 470.8 MB, free: 3.27 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.4452, allocations: 316.7 kB / 471.1 MB, free: 2.91 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.4454, allocations: 58.45 kB / 471.2 MB, free: 2.844 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.114e-05/0.4454, allocations: 24.95 kB / 471.2 MB, free: 2.816 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.4455, allocations: 0 / 471.2 MB, free: 2.816 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.4457, allocations: 103.3 kB / 471.3 MB, free: 2.703 MB / 346.8 MB Notification: Performance of pre-optimization done (n=10): time 2.876e-06/0.4457, allocations: 3.984 kB / 471.3 MB, free: 2.699 MB / 346.8 MB Notification: Performance of matching and sorting (n=10): time 0.0002657/0.4459, allocations: 97.48 kB / 471.4 MB, free: 2.598 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.446, allocations: 59.33 kB / 471.4 MB, free: 2.527 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.4461, allocations: 134.1 kB / 471.6 MB, free: 2.391 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4462, allocations: 37.64 kB / 471.6 MB, free: 2.348 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.651e-05/0.4462, allocations: 104.1 kB / 471.7 MB, free: 2.242 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.4463, allocations: 23.66 kB / 471.7 MB, free: 2.219 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.304e-06/0.4463, allocations: 4 kB / 471.7 MB, free: 2.215 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.4464, allocations: 322.8 kB / 472 MB, free: 1.891 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.4465, allocations: 19.98 kB / 472.1 MB, free: 1.871 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.399e-05/0.4466, allocations: 58.28 kB / 472.1 MB, free: 1.797 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.914e-05/0.4466, allocations: 27.98 kB / 472.1 MB, free: 1.77 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4466, allocations: 0 / 472.1 MB, free: 1.77 MB / 346.8 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001923/0.4468, allocations: 117.3 kB / 472.3 MB, free: 1.648 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.4469, allocations: 12.92 kB / 472.3 MB, free: 1.637 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4469, allocations: 160 / 472.3 MB, free: 1.637 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.4469, allocations: 8 kB / 472.3 MB, free: 1.629 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.447, allocations: 11.94 kB / 472.3 MB, free: 1.617 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.447, allocations: 4 kB / 472.3 MB, free: 1.613 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.212e-05/0.4471, allocations: 8.078 kB / 472.3 MB, free: 1.605 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.4471, allocations: 11.94 kB / 472.3 MB, free: 1.594 MB / 346.8 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.R_DIGITAL.y,R_DIGITAL.y,$PRE.Rhyst_DIGITAL.state,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.Rhyst.state,Rhyst.state) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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.0001491/0.4473, allocations: 116.7 kB / 472.4 MB, free: 1.477 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.4473, allocations: 23.77 kB / 472.5 MB, free: 1.453 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.4474, allocations: 16.61 kB / 472.5 MB, free: 1.434 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.4474, allocations: 0 / 472.5 MB, free: 1.434 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4474, allocations: 0 / 472.5 MB, free: 1.434 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.4474, allocations: 0 / 472.5 MB, free: 1.434 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.4476, allocations: 197.8 kB / 472.7 MB, free: 1.191 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4476, allocations: 0 / 472.7 MB, free: 1.191 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.522e-05/0.4477, allocations: 11.98 kB / 472.7 MB, free: 1.18 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4477, allocations: 0 / 472.7 MB, free: 1.18 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.4477, allocations: 3.953 kB / 472.7 MB, free: 1.176 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.4477, allocations: 8 kB / 472.7 MB, free: 1.168 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4477, allocations: 0 / 472.7 MB, free: 1.168 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.4479, allocations: 124.9 kB / 472.8 MB, free: 1.027 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.995e-05/0.448, allocations: 88.92 kB / 472.9 MB, free: 0.9219 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.448, allocations: 8 kB / 472.9 MB, free: 0.9141 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.644e-05/0.4481, allocations: 15.88 kB / 472.9 MB, free: 0.8984 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/0.4482, allocations: 12.05 kB / 472.9 MB, free: 0.8867 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.4482, allocations: 15.98 kB / 472.9 MB, free: 0.8711 MB / 346.8 MB Notification: Performance of sorting global known variables: time 9.219e-05/0.4483, allocations: 108.1 kB / 473.1 MB, free: 0.7656 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4483, allocations: 0 / 473.1 MB, free: 0.7656 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0001913/0.4485, allocations: 19.94 kB / 473.1 MB, free: 0.7461 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,Rhyst_DIGITAL.y,Rhyst_DIGITAL.state,R_DIGITAL.y,Rhyst.state) * Number of discrete states: 3 (Rhyst_DIGITAL.state,R_DIGITAL.u,Rhyst.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0005422/0.4491, allocations: 0.6669 MB / 473.7 MB, free: 48 kB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0001851/0.4493, allocations: 60.2 kB / 473.8 MB, free: 15.98 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4493, allocations: 3.938 kB / 473.8 MB, free: 15.98 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 6.925e-05/0.4493, allocations: 35.92 kB / 473.8 MB, free: 15.95 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001178/0.4495, allocations: 11.95 kB / 473.8 MB, free: 15.93 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000565/0.45, allocations: 175.5 kB / 474 MB, free: 15.73 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.4504, allocations: 0.7122 MB / 474.7 MB, free: 14.99 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 6.88e-05/0.4505, allocations: 20.55 kB / 474.8 MB, free: 14.97 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/0.4505, allocations: 37.05 kB / 474.8 MB, free: 14.93 MB / 362.8 MB Notification: Performance of SimCode: time 5.81e-07/0.4505, allocations: 0 / 474.8 MB, free: 14.93 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01353/0.4641, allocations: 2.079 MB / 476.9 MB, free: 12.94 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.4643, allocations: 179.4 kB / 477 MB, free: 12.71 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.155, allocations: 3.594 kB / 477 MB, free: 12.71 MB / 362.8 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)