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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00397/0.00397, allocations: 179.5 kB / 7.454 MB, free: 2.523 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06216/0.06216, allocations: 10.59 MB / 18.45 MB, free: 2.18 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.489/1.489, allocations: 205.2 MB / 226.5 MB, free: 0.6641 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.000977/0.0009771, allocations: 91.34 kB / 276.9 MB, free: 1.852 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1393/0.1403, allocations: 56.13 MB / 333 MB, free: 9.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.4784, allocations: 49.99 MB / 383 MB, free: 39.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.5893, allocations: 76.94 MB / 460 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003142/0.5897, allocations: 81.36 kB / 460 MB, free: 10.92 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.005881/0.5956, allocations: 1.677 MB / 461.7 MB, free: 9.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.284e-05/0.5956, allocations: 12.19 kB / 461.7 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.323e-05/0.5957, allocations: 19.75 kB / 461.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005539/0.5963, allocations: 242.6 kB / 462 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.5964, allocations: 55.41 kB / 462 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.177e-05/0.5964, allocations: 7.938 kB / 462 MB, free: 8.801 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001225/0.5966, allocations: 23.98 kB / 462.1 MB, free: 8.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.5967, allocations: 61.66 kB / 462.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.5968, allocations: 0 / 462.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.5968, allocations: 0 / 462.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.5968, allocations: 11.94 kB / 462.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/0.5974, allocations: 289.2 kB / 462.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001072/0.5976, allocations: 46.64 kB / 462.5 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.463e-05/0.5976, allocations: 20.89 kB / 462.5 MB, free: 8.301 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.5977, allocations: 0 / 462.5 MB, free: 8.301 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001433/0.5978, allocations: 87.3 kB / 462.6 MB, free: 8.203 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.5978, allocations: 0 / 462.6 MB, free: 8.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002571/0.5981, allocations: 85.42 kB / 462.7 MB, free: 8.113 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.5981, allocations: 55.41 kB / 462.7 MB, free: 8.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.5983, allocations: 138.8 kB / 462.8 MB, free: 7.906 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.5983, allocations: 29.7 kB / 462.9 MB, free: 7.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/0.5984, allocations: 92.12 kB / 463 MB, free: 7.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/0.5984, allocations: 23.66 kB / 463 MB, free: 7.754 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.5984, allocations: 4 kB / 463 MB, free: 7.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.5986, allocations: 322.7 kB / 463.3 MB, free: 7.426 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.631e-05/0.5987, allocations: 16 kB / 463.3 MB, free: 7.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.912e-05/0.5988, allocations: 61.14 kB / 463.4 MB, free: 7.332 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.432e-05/0.5988, allocations: 14.7 kB / 463.4 MB, free: 7.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.5988, allocations: 7.938 kB / 463.4 MB, free: 7.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001817/0.599, allocations: 109.4 kB / 463.5 MB, free: 7.199 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.5991, allocations: 8.625 kB / 463.5 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.5991, allocations: 0 / 463.5 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.5991, allocations: 4 kB / 463.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.5992, allocations: 15.92 kB / 463.5 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.5992, allocations: 4.094 kB / 463.5 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.5993, allocations: 7.938 kB / 463.6 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.5993, allocations: 8.156 kB / 463.6 MB, free: 7.152 MB / 346.7 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.0001795/0.5995, allocations: 112.9 kB / 463.7 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.5995, allocations: 11.97 kB / 463.7 MB, free: 7.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.751e-05/0.5996, allocations: 16.5 kB / 463.7 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.5996, allocations: 4 kB / 463.7 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5996, allocations: 0 / 463.7 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.5996, allocations: 0 / 463.7 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.5998, allocations: 178.2 kB / 463.9 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.5998, allocations: 0 / 463.9 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.5999, allocations: 15.92 kB / 463.9 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5999, allocations: 0 / 463.9 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.6, allocations: 4 kB / 463.9 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.098e-05/0.6, allocations: 3.984 kB / 463.9 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.6, allocations: 0 / 463.9 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001613/0.6001, allocations: 112.9 kB / 464 MB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003082/0.6005, allocations: 489.3 kB / 464.5 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.366e-05/0.6005, allocations: 88.92 kB / 464.6 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.6006, allocations: 11.92 kB / 464.6 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.065e-05/0.6007, allocations: 4 kB / 464.6 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.6007, allocations: 11.97 kB / 464.6 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.6007, allocations: 8 kB / 464.6 MB, free: 5.996 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.842e-05/0.6008, allocations: 107.3 kB / 464.7 MB, free: 5.891 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008093/0.6016, allocations: 15.94 kB / 464.7 MB, free: 5.875 MB / 346.7 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.000161/0.6018, allocations: 103.2 kB / 464.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.602, allocations: 56.12 kB / 464.9 MB, free: 5.711 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.602, allocations: 3.938 kB / 464.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.232e-05/0.602, allocations: 28.25 kB / 464.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.6022, allocations: 19.34 kB / 464.9 MB, free: 5.664 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.6027, allocations: 141.3 kB / 465.1 MB, free: 5.504 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.6031, allocations: 0.7231 MB / 465.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6031, allocations: 0 / 465.8 MB, free: 4.754 MB / 346.7 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)