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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001144/0.001144, allocations: 198.2 kB / 16.14 MB, free: 6.707 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.35/1.35, allocations: 205.1 MB / 222 MB, free: 5.008 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05459/0.05459, allocations: 10.74 MB / 280.1 MB, free: 10.96 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.001328/0.001328, allocations: 67.91 kB / 340 MB, free: 23.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08391/0.08525, allocations: 49.01 MB / 389 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00299/0.08828, allocations: 1.611 MB / 390.6 MB, free: 5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008477/0.08915, allocations: 0.5464 MB / 391.1 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.22e-05/0.08925, allocations: 7.938 kB / 391.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.189e-05/0.08931, allocations: 7.922 kB / 391.2 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.0894, allocations: 7.875 kB / 391.2 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.08964, allocations: 59.92 kB / 391.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.0898, allocations: 99.69 kB / 391.3 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.08993, allocations: 17.12 kB / 391.3 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.09004, allocations: 55.7 kB / 391.4 MB, free: 4.195 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.486e-05/0.09012, allocations: 31.78 kB / 391.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.09015, allocations: 4 kB / 391.4 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.713e-05/0.09017, allocations: 11.88 kB / 391.4 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.42e-05/0.09021, allocations: 15.92 kB / 391.4 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.064e-05/0.09027, allocations: 51.72 kB / 391.5 MB, free: 4.082 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.09041, allocations: 79.92 kB / 391.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.09042, allocations: 0 / 391.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.09042, allocations: 0 / 391.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.09043, allocations: 0 / 391.6 MB, free: 4.004 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005971/0.09103, allocations: 495.5 kB / 392.1 MB, free: 3.457 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.09107, allocations: 8.031 kB / 392.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.573e-05/0.09112, allocations: 38.75 kB / 392.1 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.625e-05/0.09116, allocations: 12.75 kB / 392.1 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.09138, allocations: 236.6 kB / 392.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.221e-05/0.09146, allocations: 59.95 kB / 392.4 MB, free: 3.051 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.09148, allocations: 4.375 kB / 392.4 MB, free: 3.047 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.09167, allocations: 85.52 kB / 392.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.09169, allocations: 0 / 392.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.09171, allocations: 0 / 392.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.09172, allocations: 0 / 392.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.09185, allocations: 35.97 kB / 392.5 MB, free: 2.922 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/0.09231, allocations: 316.6 kB / 392.8 MB, free: 2.562 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001867/0.0925, allocations: 70.48 kB / 392.9 MB, free: 2.484 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.306e-05/0.09259, allocations: 25.09 kB / 392.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.09262, allocations: 15.98 kB / 392.9 MB, free: 2.441 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.0929, allocations: 103.3 kB / 393 MB, free: 2.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.09291, allocations: 0 / 393 MB, free: 2.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.000397/0.09331, allocations: 145.4 kB / 393.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.325e-05/0.09338, allocations: 59.41 kB / 393.2 MB, free: 2.109 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.09351, allocations: 158.1 kB / 393.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.09353, allocations: 26.08 kB / 393.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.529e-05/0.0936, allocations: 104.1 kB / 393.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.09364, allocations: 23.66 kB / 393.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.435e-05/0.09369, allocations: 29.7 kB / 393.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.09383, allocations: 330.7 kB / 393.9 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/0.09391, allocations: 19.98 kB / 393.9 MB, free: 1.398 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.223e-05/0.09401, allocations: 73.14 kB / 394 MB, free: 1.309 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.09421, allocations: 105 kB / 394.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.09422, allocations: 0 / 394.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002165/0.09445, allocations: 121.4 kB / 394.2 MB, free: 1.062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.09447, allocations: 8 kB / 394.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.09448, allocations: 160 / 394.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.0945, allocations: 8 kB / 394.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.961e-05/0.0946, allocations: 15.98 kB / 394.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.09461, allocations: 7.938 kB / 394.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.337e-05/0.09468, allocations: 11.92 kB / 394.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.0947, allocations: 4 kB / 394.3 MB, free: 1.008 MB / 286.1 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(flow=false fixed = true ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(flow=false fixed = true ) "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,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,Rhyst.state,$PRE.Rhyst.state,$whenCondition3) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001416/0.09484, allocations: 121.8 kB / 394.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.09487, allocations: 15.81 kB / 394.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.225e-05/0.09494, allocations: 16.7 kB / 394.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.09495, allocations: 3.984 kB / 394.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.09496, allocations: 112 / 394.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.09497, allocations: 7.875 kB / 394.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001744/0.09515, allocations: 197.6 kB / 394.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.09516, allocations: 4 kB / 394.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.117e-05/0.09522, allocations: 7.984 kB / 394.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.09522, allocations: 0 / 394.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.09525, allocations: 8.062 kB / 394.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.09526, allocations: 11.94 kB / 394.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.09526, allocations: 0 / 394.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.09555, allocations: 140.9 kB / 394.8 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.09561, allocations: 92.86 kB / 394.9 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.09564, allocations: 4 kB / 394.9 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.098e-05/0.09571, allocations: 7.984 kB / 394.9 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.09577, allocations: 7.984 kB / 394.9 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.0958, allocations: 20.02 kB / 394.9 MB, free: 264 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.09588, allocations: 112.1 kB / 395 MB, free: 152 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09588, allocations: 0 / 395 MB, free: 152 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002033/0.09609, allocations: 19.98 kB / 395.1 MB, free: 132 kB / 286.1 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) * Number of clocked states: 0 () * 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 (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.0005818/0.09668, allocations: 0.6748 MB / 395.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.09691, allocations: 75.91 kB / 395.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.09692, allocations: 3.938 kB / 395.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.09704, allocations: 31.97 kB / 395.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001667/0.09721, allocations: 15.94 kB / 395.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.09902, allocations: 1.617 MB / 397.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.0993, allocations: 0.7043 MB / 398.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.49e-05/0.09937, allocations: 20.42 kB / 398.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.672e-05/0.09944, allocations: 35.42 kB / 398.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.09945, allocations: 0 / 398.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03285/0.1323, allocations: 2.208 MB / 400.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002482/0.1326, allocations: 237.9 kB / 400.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/1.89, allocations: 0 / 400.7 MB, free: 10.38 MB / 302.1 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/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)