Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.327/1.327, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05759/0.05759, allocations: 10.75 MB / 280.5 MB, free: 10.51 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.00143/0.00143, allocations: 64.12 kB / 340.5 MB, free: 23.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08696, allocations: 49.02 MB / 389.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004339/0.09134, allocations: 2.148 MB / 391.7 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.0935, allocations: 1.244 MB / 392.9 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002054/0.09372, allocations: 7.938 kB / 393 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008686/0.09463, allocations: 259.2 kB / 393.2 MB, free: 2.543 MB / 286.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.0005097/0.09515, allocations: 199.2 kB / 393.4 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008594/0.09601, allocations: 323.2 kB / 393.7 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004521/0.09647, allocations: 383 kB / 394.1 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.09665, allocations: 57.16 kB / 394.1 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.09694, allocations: 159.4 kB / 394.3 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.09719, allocations: 155.3 kB / 394.5 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.223e-05/0.09725, allocations: 20 kB / 394.5 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.09752, allocations: 123.9 kB / 394.6 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.09765, allocations: 79.69 kB / 394.7 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.09781, allocations: 135.1 kB / 394.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000567/0.09838, allocations: 395 kB / 395.2 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.0984, allocations: 0 / 395.2 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09841, allocations: 0 / 395.2 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.703e-05/0.09844, allocations: 0 / 395.2 MB, free: 0.5547 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001321/0.09976, allocations: 0.6846 MB / 395.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.09981, allocations: 11.89 kB / 395.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.758e-05/0.09991, allocations: 36.47 kB / 395.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.1003, allocations: 324 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.1004, allocations: 12.31 kB / 396.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.1004, allocations: 27.86 kB / 396.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003766/0.1008, allocations: 200 kB / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1008, allocations: 0 / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.1008, allocations: 11.98 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.1008, allocations: 4 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.1011, allocations: 87.94 kB / 396.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008328/0.1019, allocations: 0.5313 MB / 397.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005418/0.1025, allocations: 166.6 kB / 397.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.1027, allocations: 76.94 kB / 397.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1027, allocations: 0 / 397.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.1031, allocations: 177 kB / 397.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.1031, allocations: 4 kB / 397.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.000849/0.104, allocations: 317.6 kB / 397.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.1041, allocations: 136.5 kB / 398 MB, free: 13.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000491/0.1046, allocations: 385.6 kB / 398.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.38e-05/0.1046, allocations: 33.7 kB / 398.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.1048, allocations: 160.5 kB / 398.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.763e-05/0.1048, allocations: 59.28 kB / 398.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.734e-05/0.1049, allocations: 61.69 kB / 398.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1051, allocations: 342.8 kB / 399 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.1052, allocations: 60.17 kB / 399 MB, free: 12.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.1055, allocations: 179.3 kB / 399.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003974/0.1059, allocations: 246.8 kB / 399.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.1059, allocations: 4 kB / 399.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005172/0.1064, allocations: 272.9 kB / 399.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1064, allocations: 10.81 kB / 399.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1064, allocations: 4 kB / 399.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1065, allocations: 4 kB / 399.7 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001384/0.1066, allocations: 31.92 kB / 399.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1066, allocations: 7.938 kB / 399.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.1068, allocations: 36.08 kB / 399.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.1068, allocations: 16 kB / 399.8 MB, free: 11.54 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(flow=false fixed = true ) "output" type: Boolean 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: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$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,$whenCondition4,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.set.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0002362/0.1071, allocations: 189.2 kB / 400 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.37e-05/0.1071, allocations: 35.56 kB / 400.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.452e-05/0.1072, allocations: 35.28 kB / 400.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1072, allocations: 4 kB / 400.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1072, allocations: 0 / 400.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.1073, allocations: 3.984 kB / 400.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002991/0.1076, allocations: 313.2 kB / 400.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1076, allocations: 0 / 400.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.126e-05/0.1076, allocations: 19.92 kB / 400.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1077, allocations: 0 / 400.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.1077, allocations: 15.97 kB / 400.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1077, allocations: 0 / 400.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1077, allocations: 7.984 kB / 400.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.1082, allocations: 284.5 kB / 400.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.715e-05/0.1083, allocations: 108.7 kB / 400.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.253e-05/0.1084, allocations: 8 kB / 400.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1085, allocations: 19.92 kB / 400.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.1086, allocations: 19.97 kB / 400.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.1086, allocations: 12 kB / 400.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002727/0.1089, allocations: 279.2 kB / 401.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1089, allocations: 0 / 401.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.1093, allocations: 71.98 kB / 401.2 MB, free: 10.05 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: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001032/0.1103, allocations: 460 kB / 401.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004663/0.1108, allocations: 199.1 kB / 401.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1108, allocations: 4 kB / 401.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.111, allocations: 87.89 kB / 402 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/0.1114, allocations: 81.5 kB / 402 MB, free: 9.332 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008788/0.1123, allocations: 0.4904 MB / 402.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004242/0.1128, allocations: 0.7753 MB / 403.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.1129, allocations: 50.92 kB / 403.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.925e-05/0.113, allocations: 31.44 kB / 403.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.113, allocations: 0 / 403.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of Templates: time 0.00955/0.1226, allocations: 4.466 MB / 407.9 MB, free: 3.477 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)