Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge",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.001112/0.001112, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001216/0.001216, allocations: 194.5 kB / 16.14 MB, free: 6.672 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.326/1.326, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05388/0.05388, allocations: 10.75 MB / 280.1 MB, free: 10.71 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.001918/0.001918, allocations: 63.84 kB / 340 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.08749, allocations: 49.03 MB / 389 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.003663/0.09118, allocations: 2.041 MB / 391 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.09315, allocations: 1.17 MB / 392.2 MB, free: 3.352 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.09334, allocations: 7.938 kB / 392.2 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007694/0.09412, allocations: 275.4 kB / 392.5 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004436/0.09457, allocations: 179.5 kB / 392.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007034/0.09529, allocations: 267.5 kB / 392.9 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004445/0.09574, allocations: 351.1 kB / 393.3 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.09588, allocations: 44.3 kB / 393.3 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002073/0.09609, allocations: 131.4 kB / 393.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000197/0.0963, allocations: 143.4 kB / 393.6 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.09634, allocations: 8 kB / 393.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.09654, allocations: 91.94 kB / 393.7 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.09666, allocations: 83.66 kB / 393.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.09678, allocations: 107.3 kB / 393.9 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.0972, allocations: 363.1 kB / 394.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.09721, allocations: 3.984 kB / 394.2 MB, free: 1.336 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.09722, allocations: 3.938 kB / 394.2 MB, free: 1.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.09723, allocations: 0 / 394.2 MB, free: 1.332 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001096/0.09833, allocations: 0.6613 MB / 394.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.09837, allocations: 12.03 kB / 394.9 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.633e-05/0.09842, allocations: 42.73 kB / 394.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.713e-05/0.09851, allocations: 32.55 kB / 395 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004323/0.09895, allocations: 336.1 kB / 395.3 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.09897, allocations: 11.94 kB / 395.3 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.099, allocations: 12 kB / 395.3 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000302/0.09931, allocations: 148.2 kB / 395.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.09932, allocations: 0 / 395.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.09935, allocations: 11.94 kB / 395.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.09936, allocations: 0 / 395.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001665/0.09953, allocations: 67.91 kB / 395.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006355/0.1002, allocations: 492.2 kB / 396 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.1006, allocations: 154.6 kB / 396.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.1007, allocations: 56.92 kB / 396.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.1007, allocations: 4 kB / 396.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.101, allocations: 137.9 kB / 396.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.101, allocations: 0 / 396.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005612/0.1016, allocations: 289.1 kB / 396.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.1016, allocations: 110.8 kB / 396.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004878/0.1021, allocations: 416.5 kB / 397.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.1022, allocations: 33.7 kB / 397.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.1023, allocations: 164.4 kB / 397.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.055e-05/0.1024, allocations: 43.45 kB / 397.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.096e-05/0.1024, allocations: 45.7 kB / 397.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.1026, allocations: 350.7 kB / 397.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1027, allocations: 48.2 kB / 397.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.1029, allocations: 152.4 kB / 398 MB, free: 13.26 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.1032, allocations: 196.4 kB / 398.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1032, allocations: 0 / 398.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003693/0.1036, allocations: 225 kB / 398.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1036, allocations: 8 kB / 398.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.1036, allocations: 4 kB / 398.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.1037, allocations: 256 / 398.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.1038, allocations: 39.91 kB / 398.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.1038, allocations: 7.938 kB / 398.4 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.1039, allocations: 19.84 kB / 398.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.1039, allocations: 15.94 kB / 398.5 MB, free: 12.71 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.0001891/0.1041, allocations: 184.2 kB / 398.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.412e-05/0.1042, allocations: 35.62 kB / 398.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.971e-05/0.1042, allocations: 31.28 kB / 398.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1043, allocations: 8.031 kB / 398.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1043, allocations: 3.984 kB / 398.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1043, allocations: 0 / 398.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.1045, allocations: 301.4 kB / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1045, allocations: 4 kB / 399 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.272e-05/0.1046, allocations: 11.98 kB / 399 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.1046, allocations: 0 / 399 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.1046, allocations: 11.94 kB / 399.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1046, allocations: 4 kB / 399.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1046, allocations: 0 / 399.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000428/0.105, allocations: 267.3 kB / 399.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-05/0.1051, allocations: 104.8 kB / 399.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.35e-05/0.1052, allocations: 8 kB / 399.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.441e-05/0.1053, allocations: 7.984 kB / 399.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.1053, allocations: 15.98 kB / 399.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1053, allocations: 11.98 kB / 399.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.1056, allocations: 307 kB / 399.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1057, allocations: 0 / 399.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.106, allocations: 67.89 kB / 399.8 MB, free: 11.27 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.001531/0.1075, allocations: 1.129 MB / 401 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003173/0.1078, allocations: 151.8 kB / 401.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1078, allocations: 3.938 kB / 401.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.108, allocations: 75.97 kB / 401.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.1085, allocations: 76.98 kB / 401.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.1119, allocations: 3.054 MB / 404.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1123, allocations: 0.7753 MB / 405.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001219/0.1124, allocations: 50.92 kB / 405.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.1125, allocations: 91.41 kB / 405.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1125, allocations: 3.938 kB / 405.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.1296, allocations: 7.182 MB / 412.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.1298, allocations: 285.6 kB / 412.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.017, allocations: 0 / 412.7 MB, free: 14.25 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_OffDelay_Fedge.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)