Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.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.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 105 kB / 16.41 MB, free: 6.465 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.001603/0.001603, allocations: 187 kB / 17.34 MB, free: 5.719 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05656/0.05656, allocations: 10.73 MB / 281.3 MB, free: 1.289 MB / 222.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.001462/0.001462, allocations: 69.95 kB / 391.5 MB, free: 46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08773, allocations: 49.03 MB / 440.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN): time 0.003252/0.09103, allocations: 2.387 MB / 442.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.09316, allocations: 1.474 MB / 444.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.09338, allocations: 7.938 kB / 444.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.09472, allocations: 0.6116 MB / 445 MB, free: 15.3 MB / 334.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.0007674/0.0955, allocations: 414.5 kB / 445.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.09674, allocations: 0.5054 MB / 445.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007238/0.09747, allocations: 0.6975 MB / 446.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.09767, allocations: 92.97 kB / 446.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003423/0.09802, allocations: 294.9 kB / 447 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.09837, allocations: 310.8 kB / 447.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.934e-05/0.09845, allocations: 36 kB / 447.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003474/0.0988, allocations: 187.8 kB / 447.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.09901, allocations: 187.4 kB / 447.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002375/0.09925, allocations: 270.3 kB / 448 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007795/0.1, allocations: 0.7241 MB / 448.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1001, allocations: 0 / 448.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1001, allocations: 0 / 448.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.1001, allocations: 0 / 448.7 MB, free: 11.62 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001588/0.1017, allocations: 1.05 MB / 449.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1017, allocations: 15.83 kB / 449.8 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1019, allocations: 68.09 kB / 449.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006984/0.1026, allocations: 0.5278 MB / 450.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.1026, allocations: 12.7 kB / 450.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.1026, allocations: 24.12 kB / 450.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004628/0.1031, allocations: 252.6 kB / 450.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1031, allocations: 0 / 450.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.1032, allocations: 12 kB / 450.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.1032, allocations: 4 kB / 450.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.1035, allocations: 119.9 kB / 450.8 MB, free: 9.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.1045, allocations: 0.7342 MB / 451.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007379/0.1053, allocations: 274.5 kB / 451.8 MB, free: 8.344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.1055, allocations: 92.81 kB / 451.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.215e-05/0.1056, allocations: 12.55 kB / 451.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004118/0.106, allocations: 232.9 kB / 452.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.106, allocations: 0 / 452.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.000907/0.1069, allocations: 445.9 kB / 452.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.107, allocations: 187.9 kB / 452.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.108, allocations: 0.8908 MB / 453.6 MB, free: 6.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.1081, allocations: 45.7 kB / 453.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.1084, allocations: 284.5 kB / 453.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.287e-05/0.1085, allocations: 82.98 kB / 454 MB, free: 6.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.836e-05/0.1086, allocations: 65.69 kB / 454.1 MB, free: 5.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1087, allocations: 322 kB / 454.4 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/0.1089, allocations: 83.92 kB / 454.5 MB, free: 5.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003323/0.1092, allocations: 259.5 kB / 454.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.1098, allocations: 315.6 kB / 455 MB, free: 4.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1098, allocations: 0 / 455 MB, free: 4.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006902/0.1105, allocations: 368.4 kB / 455.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.1106, allocations: 8.094 kB / 455.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1106, allocations: 7.938 kB / 455.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.1106, allocations: 8.312 kB / 455.4 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001922/0.1108, allocations: 55.91 kB / 455.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.1108, allocations: 4 kB / 455.5 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.1111, allocations: 43.66 kB / 455.5 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.343e-05/0.1111, allocations: 20 kB / 455.5 MB, free: 4.348 MB / 334.1 MB Warning: Assuming fixed start value for the following 5 variables: counter.CUd:DISCRETE(fixed = true ) type: Boolean counter.CDd:DISCRETE(fixed = true ) type: Boolean counter.Sd:DISCRETE(fixed = true ) type: Boolean counter.Q:DISCRETE(flow=false fixed = true ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.countDOWN.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.countUP.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,reset.combiTimeTable.nextTimeEventScaled,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.y,set.combiTimeTable.nextTimeEventScaled,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.y,countDOWN.combiTimeTable.nextTimeEventScaled,$PRE.countDOWN.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.y,countUP.combiTimeTable.nextTimeEventScaled,$PRE.countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEvent,countUP.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003861/0.1115, allocations: 262.9 kB / 455.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.1116, allocations: 71.09 kB / 455.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.1117, allocations: 62.5 kB / 455.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1118, allocations: 4 kB / 455.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.1118, allocations: 0 / 455.9 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1118, allocations: 3.984 kB / 455.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005017/0.1123, allocations: 473 kB / 456.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1123, allocations: 0 / 456.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.265e-05/0.1124, allocations: 23.92 kB / 456.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1124, allocations: 4 kB / 456.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.1124, allocations: 11.98 kB / 456.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.1124, allocations: 3.938 kB / 456.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1124, allocations: 0 / 456.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006589/0.1131, allocations: 396.5 kB / 456.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.1132, allocations: 144.2 kB / 457 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.84e-05/0.1133, allocations: 16 kB / 457 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.1135, allocations: 23.97 kB / 457 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.255e-05/0.1136, allocations: 23.97 kB / 457 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.1137, allocations: 12 kB / 457 MB, free: 2.746 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007837/0.1144, allocations: 0.6474 MB / 457.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1145, allocations: 0 / 457.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.1149, allocations: 112 kB / 457.8 MB, free: 1.992 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: 22 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,countUP.y,countUP.combiTimeTable.nextTimeEvent,countUP.combiTimeTable.nextTimeEventScaled,countDOWN.y,countDOWN.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEventScaled,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 12 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,countDOWN.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEventScaled,countUP.combiTimeTable.nextTimeEvent,countDOWN.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 12 * 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.001116/0.1161, allocations: 478 kB / 458.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005929/0.1167, allocations: 255.6 kB / 458.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.1167, allocations: 0 / 458.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.1169, allocations: 128.5 kB / 458.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007291/0.1177, allocations: 147.7 kB / 458.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.1192, allocations: 1.039 MB / 459.8 MB, free: 44 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005055/0.1197, allocations: 0.8898 MB / 460.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.1198, allocations: 55.42 kB / 460.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1198, allocations: 4 kB / 460.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01313/0.133, allocations: 8.491 MB / 469.3 MB, free: 6.574 MB / 350.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countUPandDOWN.pipe 2>&1)