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.005319/0.005319, allocations: 95.89 kB / 15.73 MB, free: 6.062 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.001211/0.001211, allocations: 196 kB / 16.68 MB, free: 5.98 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.569/1.569, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05741/0.05741, allocations: 10.74 MB / 280.7 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.001653/0.001653, allocations: 67.89 kB / 390.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4924/0.4941, allocations: 49.01 MB / 439.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.005827/0.5, allocations: 2.157 MB / 442 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002814/0.5028, allocations: 1.237 MB / 443.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.5031, allocations: 6.688 kB / 443.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.5044, allocations: 264.9 kB / 443.5 MB, free: 2.91 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.0006064/0.505, allocations: 201.6 kB / 443.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.5061, allocations: 315.3 kB / 444 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006375/0.5067, allocations: 386.3 kB / 444.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.507, allocations: 67.75 kB / 444.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.5073, allocations: 169.4 kB / 444.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.5077, allocations: 149.6 kB / 444.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.431e-05/0.5078, allocations: 25.8 kB / 444.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003795/0.5082, allocations: 127.1 kB / 444.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.5083, allocations: 78.33 kB / 445 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.5085, allocations: 133.4 kB / 445.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009551/0.5095, allocations: 401.5 kB / 445.5 MB, free: 1.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.5095, allocations: 0 / 445.5 MB, free: 1.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.5095, allocations: 1.406 kB / 445.5 MB, free: 1.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.5095, allocations: 4 kB / 445.5 MB, free: 1.977 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001563/0.5111, allocations: 0.6932 MB / 446.2 MB, free: 1.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.8e-05/0.5112, allocations: 13.33 kB / 446.2 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.5113, allocations: 37.83 kB / 446.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005793/0.5119, allocations: 335 kB / 446.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.5119, allocations: 10.14 kB / 446.6 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.512, allocations: 23.36 kB / 446.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.5125, allocations: 191.2 kB / 446.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.5125, allocations: 0 / 446.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.5125, allocations: 7.391 kB / 446.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.5125, allocations: 4.156 kB / 446.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000285/0.5128, allocations: 91.08 kB / 446.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008731/0.5137, allocations: 0.5344 MB / 447.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.5142, allocations: 171.9 kB / 447.6 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.5144, allocations: 76.84 kB / 447.7 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.5144, allocations: 6.875 kB / 447.7 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003515/0.5148, allocations: 171.3 kB / 447.9 MB, free: 228 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.5148, allocations: 0 / 447.9 MB, free: 228 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.000808/0.5156, allocations: 318 kB / 448.2 MB, free: 68 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.5157, allocations: 141 kB / 448.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.5163, allocations: 383.2 kB / 448.7 MB, free: 15.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.607e-05/0.5163, allocations: 33.3 kB / 448.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.5165, allocations: 168.3 kB / 448.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.5165, allocations: 55.81 kB / 448.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.204e-05/0.5166, allocations: 58.94 kB / 449 MB, free: 15.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.5168, allocations: 347 kB / 449.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.517, allocations: 53.06 kB / 449.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.5172, allocations: 174.2 kB / 449.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/0.5177, allocations: 254.3 kB / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.5177, allocations: 0 / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005161/0.5183, allocations: 285.3 kB / 450.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.5183, allocations: 5.531 kB / 450.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5183, allocations: 3.688 kB / 450.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.5183, allocations: 5.75 kB / 450.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.5185, allocations: 32.98 kB / 450.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.5185, allocations: 7.719 kB / 450.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.5187, allocations: 34.62 kB / 450.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.5187, allocations: 12.84 kB / 450.2 MB, free: 14.45 MB / 334.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.0003565/0.5191, allocations: 178.6 kB / 450.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.804e-05/0.5192, allocations: 39.62 kB / 450.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.5193, allocations: 33.56 kB / 450.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.5193, allocations: 3.531 kB / 450.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.5193, allocations: 0 / 450.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5193, allocations: 3.984 kB / 450.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004671/0.5198, allocations: 314.7 kB / 450.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5198, allocations: 0 / 450.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.536e-05/0.5199, allocations: 13.83 kB / 450.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.5199, allocations: 1.156 kB / 450.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.52, allocations: 6.203 kB / 450.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.52, allocations: 5.062 kB / 450.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.52, allocations: 5.094 kB / 450.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006538/0.5206, allocations: 289.9 kB / 451.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.5208, allocations: 114.4 kB / 451.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.474e-05/0.5208, allocations: 5.969 kB / 451.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.521, allocations: 21.61 kB / 451.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.049e-05/0.5211, allocations: 23.5 kB / 451.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.5211, allocations: 14.28 kB / 451.2 MB, free: 13.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004105/0.5215, allocations: 275.4 kB / 451.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5215, allocations: 1.125 kB / 451.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005452/0.5221, allocations: 81.59 kB / 451.6 MB, free: 13.41 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: 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.001427/0.5235, allocations: 446.6 kB / 452 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006958/0.5242, allocations: 181.7 kB / 452.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.5243, allocations: 1.375 kB / 452.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002457/0.5245, allocations: 89.8 kB / 452.3 MB, free: 13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000544/0.5251, allocations: 82.59 kB / 452.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001329/0.5264, allocations: 0.5152 MB / 452.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.527, allocations: 0.7687 MB / 453.7 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001748/0.5272, allocations: 48.34 kB / 453.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.5273, allocations: 35.36 kB / 453.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5273, allocations: 3.938 kB / 453.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of Templates: time 0.01381/0.5411, allocations: 4.505 MB / 458.2 MB, free: 9.547 MB / 334.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)