Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005213/0.005213, allocations: 101 kB / 15.73 MB, free: 6.059 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: 192.6 kB / 16.67 MB, free: 5.969 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.235/1.235, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05513/0.05513, allocations: 10.75 MB / 280.6 MB, free: 10.4 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.001315/0.001315, allocations: 80.5 kB / 390.8 MB, free: 5.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2143, allocations: 49.01 MB / 439.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002807/0.2171, allocations: 1.993 MB / 441.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.2186, allocations: 1.178 MB / 443 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.829e-05/0.2187, allocations: 6.406 kB / 443 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006901/0.2194, allocations: 280.5 kB / 443.3 MB, free: 3.047 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.2198, allocations: 191.1 kB / 443.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005751/0.2204, allocations: 284.1 kB / 443.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.2207, allocations: 346.5 kB / 444.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.2209, allocations: 48.12 kB / 444.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.221, allocations: 148.4 kB / 444.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2212, allocations: 135.2 kB / 444.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.2212, allocations: 17.34 kB / 444.4 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.2214, allocations: 110.7 kB / 444.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.297e-05/0.2215, allocations: 66.78 kB / 444.6 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.096e-05/0.2216, allocations: 128.5 kB / 444.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.222, allocations: 351.7 kB / 445.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.222, allocations: 1.469 kB / 445.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.222, allocations: 4 kB / 445.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.222, allocations: 0 / 445.1 MB, free: 2.223 MB / 318.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.0007292/0.2227, allocations: 0.6513 MB / 445.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.2228, allocations: 13.58 kB / 445.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.499e-05/0.2228, allocations: 31.05 kB / 445.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.2232, allocations: 322 kB / 446.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.2232, allocations: 12.81 kB / 446.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.2232, allocations: 17.12 kB / 446.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.2235, allocations: 150.7 kB / 446.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.2235, allocations: 0 / 446.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.2235, allocations: 2.797 kB / 446.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.2235, allocations: 2.938 kB / 446.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.2237, allocations: 71.91 kB / 446.4 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.2243, allocations: 480.2 kB / 446.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.2246, allocations: 135.8 kB / 447 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.2247, allocations: 56.78 kB / 447 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.2247, allocations: 6.953 kB / 447 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002303/0.225, allocations: 135.1 kB / 447.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.225, allocations: 1.125 kB / 447.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005282/0.2255, allocations: 257.9 kB / 447.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.2256, allocations: 111.3 kB / 447.5 MB, free: 452 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.2259, allocations: 386.1 kB / 447.9 MB, free: 228 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.2259, allocations: 33.17 kB / 447.9 MB, free: 192 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.039e-05/0.226, allocations: 154.4 kB / 448.1 MB, free: 44 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.2261, allocations: 50.28 kB / 448.1 MB, free: 0 / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.257e-05/0.2261, allocations: 47.72 kB / 448.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2263, allocations: 347.7 kB / 448.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.2264, allocations: 43.8 kB / 448.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.2266, allocations: 145.2 kB / 448.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.2269, allocations: 191.1 kB / 448.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2269, allocations: 0 / 448.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003688/0.2272, allocations: 227.4 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2273, allocations: 6.594 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.2273, allocations: 2.25 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.2273, allocations: 3.969 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.2274, allocations: 34.77 kB / 449.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.2274, allocations: 6.672 kB / 449.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2276, allocations: 25.64 kB / 449.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.2276, allocations: 13.25 kB / 449.2 MB, free: 15.14 MB / 334.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001819/0.2278, allocations: 172.6 kB / 449.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.237e-05/0.2278, allocations: 42.56 kB / 449.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.666e-05/0.2279, allocations: 28.45 kB / 449.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2279, allocations: 1.75 kB / 449.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2279, allocations: 0 / 449.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2279, allocations: 0 / 449.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.2282, allocations: 290.8 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2282, allocations: 1.188 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.332e-05/0.2282, allocations: 6.125 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.2282, allocations: 1.219 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.2282, allocations: 6.797 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2283, allocations: 1.25 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2283, allocations: 4 kB / 449.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003909/0.2287, allocations: 261.1 kB / 450 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.2287, allocations: 100.6 kB / 450.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.66e-05/0.2288, allocations: 9.938 kB / 450.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.2289, allocations: 13.64 kB / 450.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.2289, allocations: 9.578 kB / 450.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.229, allocations: 14.06 kB / 450.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002675/0.2292, allocations: 283.8 kB / 450.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.2292, allocations: 0 / 450.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.2296, allocations: 66.95 kB / 450.5 MB, free: 14.16 MB / 334.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0009042/0.2305, allocations: 431 kB / 450.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003156/0.2308, allocations: 153.3 kB / 451 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2308, allocations: 1.375 kB / 451.1 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.2309, allocations: 71.73 kB / 451.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.2313, allocations: 72.31 kB / 451.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006791/0.232, allocations: 457.1 kB / 451.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.2323, allocations: 0.7671 MB / 452.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001141/0.2325, allocations: 45.53 kB / 452.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.053e-05/0.2325, allocations: 33.42 kB / 452.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2325, allocations: 4.781 kB / 452.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Templates: time 0.007507/0.24, allocations: 4.097 MB / 456.6 MB, free: 10.58 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)