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.001116/0.00112, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001185, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.383/1.383, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0601/0.0601, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001387/0.001387, allocations: 67.91 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07814/0.07954, allocations: 49.02 MB / 389.7 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002684/0.08225, allocations: 1.551 MB / 391.2 MB, free: 4.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000865/0.08314, allocations: 0.5503 MB / 391.8 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.459e-05/0.08324, allocations: 7.938 kB / 391.8 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.0833, allocations: 7.875 kB / 391.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.879e-05/0.08337, allocations: 19.8 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.08361, allocations: 67.84 kB / 391.9 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.08376, allocations: 91.77 kB / 392 MB, free: 3.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.08388, allocations: 25.11 kB / 392 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.791e-05/0.08398, allocations: 51.72 kB / 392 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.247e-05/0.08406, allocations: 35.78 kB / 392.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.08409, allocations: 11.94 kB / 392.1 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.798e-05/0.08412, allocations: 4 kB / 392.1 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.601e-05/0.08416, allocations: 27.89 kB / 392.1 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.312e-05/0.08421, allocations: 39.73 kB / 392.1 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.08433, allocations: 83.94 kB / 392.2 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.08434, allocations: 0 / 392.2 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.08435, allocations: 3.984 kB / 392.2 MB, free: 3.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.08436, allocations: 0 / 392.2 MB, free: 3.543 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.0005747/0.08494, allocations: 500 kB / 392.7 MB, free: 2.988 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.08498, allocations: 11.89 kB / 392.7 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.859e-05/0.08502, allocations: 42.75 kB / 392.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.08507, allocations: 12.75 kB / 392.8 MB, free: 2.914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.0853, allocations: 236.6 kB / 393 MB, free: 2.645 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.683e-05/0.08537, allocations: 59.97 kB / 393.1 MB, free: 2.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.0854, allocations: 8.375 kB / 393.1 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.0856, allocations: 93.44 kB / 393.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.08561, allocations: 0 / 393.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.08563, allocations: 0 / 393.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.08564, allocations: 0 / 393.2 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.08578, allocations: 35.97 kB / 393.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004364/0.08623, allocations: 316.7 kB / 393.5 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001999/0.08644, allocations: 66.55 kB / 393.6 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.361e-05/0.08653, allocations: 24.88 kB / 393.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.08655, allocations: 4 kB / 393.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.08681, allocations: 107.3 kB / 393.7 MB, free: 1.852 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.08682, allocations: 0 / 393.7 MB, free: 1.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003881/0.08722, allocations: 137.4 kB / 393.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.08726, allocations: 59.39 kB / 393.9 MB, free: 1.641 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.08739, allocations: 158.5 kB / 394.1 MB, free: 1.477 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.08741, allocations: 29.7 kB / 394.1 MB, free: 1.441 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.474e-05/0.08747, allocations: 100.1 kB / 394.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.08751, allocations: 27.91 kB / 394.2 MB, free: 1.312 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.08756, allocations: 37.58 kB / 394.3 MB, free: 1.27 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.08767, allocations: 326.8 kB / 394.6 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.673e-05/0.08776, allocations: 23.98 kB / 394.6 MB, free: 0.918 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.22e-05/0.08786, allocations: 65.14 kB / 394.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.08805, allocations: 101 kB / 394.8 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.08807, allocations: 0 / 394.8 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002326/0.0883, allocations: 129.3 kB / 394.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.08833, allocations: 8 kB / 394.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.08834, allocations: 0 / 394.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.08835, allocations: 4.156 kB / 394.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.876e-05/0.08845, allocations: 15.98 kB / 394.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.914e-06/0.08847, allocations: 7.984 kB / 394.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.601e-05/0.08854, allocations: 7.938 kB / 394.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.08855, allocations: 8.062 kB / 394.9 MB, free: 0.5352 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.0001353/0.08869, allocations: 138.9 kB / 395.1 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.24e-05/0.08872, allocations: 11.81 kB / 395.1 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.437e-05/0.08876, allocations: 20.72 kB / 395.1 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.08877, allocations: 0 / 395.1 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.08878, allocations: 0 / 395.1 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.08879, allocations: 3.938 kB / 395.1 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.08895, allocations: 201.6 kB / 395.3 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.08896, allocations: 4 kB / 395.3 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.487e-05/0.08902, allocations: 4 kB / 395.3 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.08904, allocations: 0 / 395.3 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.08905, allocations: 7.984 kB / 395.3 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.08906, allocations: 0 / 395.3 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.08907, allocations: 4 kB / 395.3 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.08937, allocations: 145 kB / 395.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.946e-05/0.08942, allocations: 92.86 kB / 395.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.08945, allocations: 0 / 395.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.557e-05/0.08952, allocations: 7.984 kB / 395.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.793e-05/0.08958, allocations: 20 kB / 395.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.0896, allocations: 15.81 kB / 395.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.757e-05/0.08968, allocations: 116.1 kB / 395.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08968, allocations: 0 / 395.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.0899, allocations: 16 kB / 395.7 MB, free: 15.64 MB / 302.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.0005334/0.09044, allocations: 0.6748 MB / 396.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002248/0.09068, allocations: 87.83 kB / 396.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.09069, allocations: 0 / 396.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.09081, allocations: 31.98 kB / 396.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001551/0.09097, allocations: 14.75 kB / 396.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.09268, allocations: 1.599 MB / 398.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.09294, allocations: 0.7041 MB / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.37e-05/0.09301, allocations: 16.42 kB / 398.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.408e-05/0.09309, allocations: 39.42 kB / 398.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09309, allocations: 0 / 398.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1107, allocations: 2.419 MB / 401.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.557/7.668, allocations: 7.688 kB / 401.3 MB, free: 9.926 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)