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.001048/0.001048, allocations: 103.3 kB / 15.06 MB, free: 1.098 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.001276/0.001276, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.73 MB / 281.1 MB, free: 10.57 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.0007299/0.00073, allocations: 12 kB / 341.7 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1217, allocations: 50.01 MB / 391.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002086/0.1239, allocations: 1.242 MB / 392.9 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009982/0.1249, allocations: 0.5234 MB / 393.5 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.125, allocations: 7.938 kB / 393.5 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.112e-05/0.125, allocations: 3.938 kB / 393.5 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.1251, allocations: 15.92 kB / 393.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1254, allocations: 55.8 kB / 393.5 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001639/0.1256, allocations: 55.88 kB / 393.6 MB, free: 3.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.1257, allocations: 25.09 kB / 393.6 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.1258, allocations: 47.78 kB / 393.7 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.37e-05/0.126, allocations: 31.78 kB / 393.7 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.126, allocations: 4 kB / 393.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.687e-05/0.126, allocations: 0 / 393.7 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.538e-05/0.126, allocations: 15.91 kB / 393.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.364e-05/0.1261, allocations: 41.7 kB / 393.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001009/0.1262, allocations: 56.11 kB / 393.8 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1262, allocations: 4 kB / 393.8 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.1262, allocations: 3.938 kB / 393.8 MB, free: 3.551 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1263, allocations: 0 / 393.8 MB, free: 3.551 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.0007081/0.127, allocations: 475.9 kB / 394.3 MB, free: 3.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.127, allocations: 8.031 kB / 394.3 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.1271, allocations: 42.55 kB / 394.3 MB, free: 2.961 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.211e-05/0.1272, allocations: 15.77 kB / 394.4 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.1275, allocations: 227.4 kB / 394.6 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.332e-05/0.1276, allocations: 63.41 kB / 394.6 MB, free: 2.609 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.1276, allocations: 4 kB / 394.6 MB, free: 2.605 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.1278, allocations: 81.58 kB / 394.7 MB, free: 2.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.1278, allocations: 0 / 394.7 MB, free: 2.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1279, allocations: 3.938 kB / 394.7 MB, free: 2.516 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1279, allocations: 3.953 kB / 394.7 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.128, allocations: 43.97 kB / 394.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005135/0.1285, allocations: 316.7 kB / 395.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.1288, allocations: 66.48 kB / 395.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.1288, allocations: 7.953 kB / 395.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.1291, allocations: 103.4 kB / 395.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.1291, allocations: 0 / 395.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004154/0.1295, allocations: 149.7 kB / 395.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.1296, allocations: 51.5 kB / 395.5 MB, free: 1.699 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.1297, allocations: 162.1 kB / 395.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.1297, allocations: 25.7 kB / 395.6 MB, free: 1.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.1298, allocations: 104.1 kB / 395.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.1298, allocations: 35.72 kB / 395.8 MB, free: 1.359 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-06/0.1298, allocations: 112 / 395.8 MB, free: 1.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.13, allocations: 334.8 kB / 396.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.001e-05/0.13, allocations: 23.98 kB / 396.1 MB, free: 1 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.689e-05/0.1301, allocations: 61.14 kB / 396.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.757e-05/0.1302, allocations: 28 kB / 396.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1303, allocations: 4 kB / 396.2 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002308/0.1305, allocations: 137.3 kB / 396.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1305, allocations: 4.156 kB / 396.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1305, allocations: 8.062 kB / 396.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1306, allocations: 4 kB / 396.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.729e-05/0.1307, allocations: 19.92 kB / 396.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.1307, allocations: 3.984 kB / 396.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.28e-05/0.1307, allocations: 8 kB / 396.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.1308, allocations: 8 kB / 396.4 MB, free: 0.6953 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,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001633/0.1309, allocations: 129.8 kB / 396.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.131, allocations: 19.75 kB / 396.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.972e-05/0.131, allocations: 16.72 kB / 396.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.131, allocations: 0 / 396.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.131, allocations: 0 / 396.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.131, allocations: 3.984 kB / 396.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001645/0.1312, allocations: 193.6 kB / 396.8 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1312, allocations: 0 / 396.8 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.132e-05/0.1313, allocations: 11.98 kB / 396.8 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1313, allocations: 4 kB / 396.8 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.1313, allocations: 7.953 kB / 396.8 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1313, allocations: 0 / 396.8 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1313, allocations: 0 / 396.8 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.1316, allocations: 148.9 kB / 396.9 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.868e-05/0.1317, allocations: 93.03 kB / 397 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.1317, allocations: 4 kB / 397 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.909e-05/0.1318, allocations: 11.77 kB / 397 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/0.1319, allocations: 15.98 kB / 397.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.1319, allocations: 3.984 kB / 397.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.271e-05/0.132, allocations: 107.3 kB / 397.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.132, allocations: 3.938 kB / 397.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002064/0.1322, allocations: 16 kB / 397.2 MB, free: 15.82 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 (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.000544/0.1328, allocations: 0.6826 MB / 397.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.133, allocations: 80.09 kB / 397.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.133, allocations: 4.062 kB / 397.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.1331, allocations: 39.92 kB / 398 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.1333, allocations: 15.94 kB / 398 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.1349, allocations: 1.465 MB / 399.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1352, allocations: 0.7121 MB / 400.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.652e-05/0.1353, allocations: 16.42 kB / 400.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.1353, allocations: 39.42 kB / 400.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1353, allocations: 0 / 400.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.1478, allocations: 2.103 MB / 402.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.1481, allocations: 211.2 kB / 402.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/1.861, allocations: 4 kB / 402.5 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/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) Environment - environmentSimulation: