Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.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.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge",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.0007673/0.0007674, allocations: 92 kB / 15.36 MB, free: 0.7383 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.004587/0.004587, allocations: 170.2 kB / 16.26 MB, free: 6.613 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.357/1.357, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05325/0.05325, allocations: 10.74 MB / 281.5 MB, free: 10.45 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.0004811/0.0004812, allocations: 12 kB / 342.3 MB, free: 23.38 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08862/0.08911, allocations: 50.01 MB / 392.3 MB, free: 5.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002549/0.09172, allocations: 1.699 MB / 394 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.09351, allocations: 1.147 MB / 395.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.635e-05/0.09362, allocations: 4 kB / 395.2 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007473/0.09438, allocations: 287.3 kB / 395.5 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003515/0.09474, allocations: 187.4 kB / 395.7 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005586/0.09531, allocations: 263.5 kB / 395.9 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.09566, allocations: 351.1 kB / 396.3 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.0958, allocations: 60.27 kB / 396.3 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.09595, allocations: 119.5 kB / 396.4 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.09613, allocations: 139.4 kB / 396.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.09616, allocations: 8 kB / 396.6 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.09633, allocations: 95.86 kB / 396.7 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-05/0.09643, allocations: 67.75 kB / 396.7 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.09656, allocations: 148.8 kB / 396.9 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003611/0.09693, allocations: 359 kB / 397.2 MB, free: 404 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.09694, allocations: 0 / 397.2 MB, free: 404 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09695, allocations: 4 kB / 397.2 MB, free: 400 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.09696, allocations: 0 / 397.2 MB, free: 400 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0009169/0.09788, allocations: 0.6187 MB / 397.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.09793, allocations: 12.03 kB / 397.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.739e-05/0.09798, allocations: 34.75 kB / 397.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/0.09805, allocations: 40.45 kB / 397.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.09845, allocations: 336.2 kB / 398.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.09847, allocations: 11.94 kB / 398.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.09851, allocations: 15.98 kB / 398.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.09881, allocations: 156.1 kB / 398.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.09882, allocations: 0 / 398.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.09885, allocations: 0 / 398.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.09886, allocations: 4 kB / 398.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.09903, allocations: 75.89 kB / 398.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.09969, allocations: 496.2 kB / 399 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004013/0.1001, allocations: 146.8 kB / 399.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.1002, allocations: 64.77 kB / 399.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/0.1003, allocations: 7.938 kB / 399.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.1005, allocations: 138.2 kB / 399.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.403e-06/0.1005, allocations: 0 / 399.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.00056/0.1011, allocations: 281.1 kB / 399.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.1012, allocations: 110.8 kB / 399.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004555/0.1017, allocations: 441.5 kB / 400.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1017, allocations: 33.7 kB / 400.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1018, allocations: 168.4 kB / 400.4 MB, free: 13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.529e-05/0.1019, allocations: 51.44 kB / 400.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.1019, allocations: 25.72 kB / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1021, allocations: 358.7 kB / 400.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.1022, allocations: 48.2 kB / 400.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.1024, allocations: 148.4 kB / 401 MB, free: 12.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.1027, allocations: 192.4 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1027, allocations: 0 / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003667/0.103, allocations: 229 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.1031, allocations: 7.984 kB / 401.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1031, allocations: 4 kB / 401.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1031, allocations: 4 kB / 401.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.1032, allocations: 27.92 kB / 401.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.1032, allocations: 4 kB / 401.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.1034, allocations: 24.09 kB / 401.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.73e-05/0.1034, allocations: 19.94 kB / 401.5 MB, free: 11.79 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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.000202/0.1036, allocations: 188.3 kB / 401.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/0.1036, allocations: 35.61 kB / 401.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.436e-05/0.1037, allocations: 35.28 kB / 401.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.1037, allocations: 4 kB / 401.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.1037, allocations: 4 kB / 401.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1037, allocations: 0 / 401.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.104, allocations: 309.3 kB / 402.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.104, allocations: 0 / 402.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-05/0.1041, allocations: 11.94 kB / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1041, allocations: 0 / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1041, allocations: 3.984 kB / 402.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1041, allocations: 4 kB / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1041, allocations: 0 / 402.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.1045, allocations: 275.6 kB / 402.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.54e-05/0.1046, allocations: 112.7 kB / 402.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.1047, allocations: 8 kB / 402.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.823e-05/0.1048, allocations: 11.98 kB / 402.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.1048, allocations: 11.98 kB / 402.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.1049, allocations: 11.98 kB / 402.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003185/0.1052, allocations: 323.1 kB / 402.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1052, allocations: 0 / 402.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.1055, allocations: 67.98 kB / 402.9 MB, free: 10.31 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001582/0.1071, allocations: 1.127 MB / 404 MB, free: 9.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003231/0.1074, allocations: 159.7 kB / 404.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1074, allocations: 0 / 404.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.1076, allocations: 75.92 kB / 404.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.108, allocations: 77.25 kB / 404.3 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003563/0.1116, allocations: 3.133 MB / 407.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.1119, allocations: 0.7791 MB / 408.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.1121, allocations: 54.92 kB / 408.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.1122, allocations: 95.39 kB / 408.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1122, allocations: 0 / 408.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3602/0.4724, allocations: 7.075 MB / 415.4 MB, free: 13.72 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004353/0.4729, allocations: 281.1 kB / 415.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.024/2.497, allocations: 0 / 415.7 MB, free: 13.34 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Redge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)