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: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.001509, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001856/0.001856, allocations: 191.2 kB / 16.25 MB, free: 6.637 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.419/1.419, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05402/0.05402, allocations: 10.73 MB / 280.2 MB, free: 10.67 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.001521/0.001521, allocations: 64.31 kB / 340 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.08579, allocations: 49.03 MB / 389.1 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.00362/0.08946, allocations: 2.041 MB / 391.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.09166, allocations: 1.155 MB / 392.3 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.0919, allocations: 11.94 kB / 392.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009096/0.09284, allocations: 287.4 kB / 392.6 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006002/0.09345, allocations: 187.5 kB / 392.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008979/0.09436, allocations: 255.6 kB / 393 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005396/0.09491, allocations: 359.1 kB / 393.3 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.09509, allocations: 52.39 kB / 393.4 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.09537, allocations: 147.4 kB / 393.5 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.0956, allocations: 151.4 kB / 393.7 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.787e-05/0.09566, allocations: 20 kB / 393.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002931/0.09596, allocations: 107.9 kB / 393.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.0961, allocations: 83.69 kB / 393.9 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.09625, allocations: 127.3 kB / 394 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005431/0.0968, allocations: 371.1 kB / 394.4 MB, free: 1.254 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.09681, allocations: 0 / 394.4 MB, free: 1.254 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.09682, allocations: 0 / 394.4 MB, free: 1.254 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.09684, allocations: 0 / 394.4 MB, free: 1.254 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.001173/0.09802, allocations: 0.6652 MB / 395 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.09807, allocations: 12.02 kB / 395.1 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.09818, allocations: 32.56 kB / 395.1 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.09859, allocations: 332.1 kB / 395.4 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.09863, allocations: 20.11 kB / 395.4 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/0.09865, allocations: 12 kB / 395.4 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.09896, allocations: 148.2 kB / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.09898, allocations: 0 / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.099, allocations: 0 / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-06/0.09901, allocations: 4 kB / 395.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.09919, allocations: 83.83 kB / 395.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006363/0.09984, allocations: 484.3 kB / 396.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.1003, allocations: 154.5 kB / 396.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.1004, allocations: 60.95 kB / 396.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.1005, allocations: 0 / 396.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/0.1008, allocations: 143.2 kB / 396.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.1008, allocations: 3.938 kB / 396.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006361/0.1014, allocations: 281.1 kB / 396.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/0.1015, allocations: 106.8 kB / 396.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.1019, allocations: 416.5 kB / 397.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.102, allocations: 33.7 kB / 397.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1021, allocations: 168.4 kB / 397.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.02e-05/0.1021, allocations: 43.45 kB / 397.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.404e-05/0.1022, allocations: 49.7 kB / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1023, allocations: 342.8 kB / 397.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.1024, allocations: 52.2 kB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.1026, allocations: 152.4 kB / 398.1 MB, free: 13.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.1029, allocations: 188.4 kB / 398.3 MB, free: 13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1029, allocations: 0 / 398.3 MB, free: 13 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003835/0.1033, allocations: 237 kB / 398.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1034, allocations: 8 kB / 398.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1034, allocations: 0 / 398.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1034, allocations: 4 kB / 398.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1035, allocations: 35.92 kB / 398.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1035, allocations: 4 kB / 398.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1036, allocations: 23.83 kB / 398.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/0.1037, allocations: 8 kB / 398.6 MB, free: 12.68 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.0002243/0.1039, allocations: 188.5 kB / 398.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.104, allocations: 35.61 kB / 398.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.088e-05/0.104, allocations: 31.28 kB / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.104, allocations: 0 / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1041, allocations: 0 / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1041, allocations: 4 kB / 398.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.1043, allocations: 309.3 kB / 399.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1044, allocations: 0 / 399.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.565e-05/0.1044, allocations: 8 kB / 399.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1044, allocations: 0 / 399.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1044, allocations: 8.109 kB / 399.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.1044, allocations: 7.938 kB / 399.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1044, allocations: 0 / 399.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000441/0.1049, allocations: 275.4 kB / 399.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.646e-05/0.105, allocations: 104.8 kB / 399.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.105, allocations: 4 kB / 399.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.712e-05/0.1051, allocations: 11.98 kB / 399.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.051e-05/0.1052, allocations: 11.98 kB / 399.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.1052, allocations: 11.98 kB / 399.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002983/0.1055, allocations: 303 kB / 399.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1055, allocations: 0 / 399.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000335/0.1059, allocations: 71.83 kB / 400 MB, free: 11.23 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.0009808/0.1068, allocations: 443.9 kB / 400.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003738/0.1072, allocations: 167.8 kB / 400.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.1072, allocations: 0 / 400.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.1074, allocations: 83.78 kB / 400.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004363/0.1078, allocations: 87.02 kB / 400.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008782/0.1087, allocations: 0.5434 MB / 401.3 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003607/0.1091, allocations: 0.7752 MB / 402 MB, free: 9.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.1093, allocations: 46.94 kB / 402.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.445e-05/0.1093, allocations: 31.44 kB / 402.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1093, allocations: 0 / 402.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Templates: time 0.008727/0.1181, allocations: 4.184 MB / 406.3 MB, free: 4.938 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)