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.0008605/0.0008605, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001089/0.001089, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.4 MB / 222.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05583/0.05583, allocations: 10.75 MB / 281.1 MB, free: 10.42 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.0007941/0.0007943, allocations: 20 kB / 341.6 MB, free: 23.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.101, allocations: 50 MB / 391.6 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002293/0.1033, allocations: 1.777 MB / 393.4 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00177/0.1051, allocations: 1.175 MB / 394.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.1053, allocations: 0 / 394.6 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007064/0.106, allocations: 239.3 kB / 394.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.1064, allocations: 163.5 kB / 395 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007311/0.1072, allocations: 275.5 kB / 395.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.1076, allocations: 339 kB / 395.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.1078, allocations: 49.16 kB / 395.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002871/0.1081, allocations: 143.3 kB / 395.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001937/0.1083, allocations: 131.4 kB / 395.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.669e-05/0.1083, allocations: 8 kB / 395.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.1085, allocations: 95.92 kB / 396 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.724e-05/0.1086, allocations: 63.75 kB / 396.1 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.268e-05/0.1087, allocations: 73.52 kB / 396.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.109, allocations: 287.6 kB / 396.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1091, allocations: 0 / 396.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1091, allocations: 3.938 kB / 396.4 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.174e-06/0.1091, allocations: 4 kB / 396.4 MB, free: 0.9336 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.000995/0.1101, allocations: 0.6411 MB / 397.1 MB, free: 240 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.1101, allocations: 12.03 kB / 397.1 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/0.1102, allocations: 39.52 kB / 397.1 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.1106, allocations: 307 kB / 397.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.1106, allocations: 15.94 kB / 397.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.077e-05/0.1107, allocations: 8 kB / 397.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.111, allocations: 200.1 kB / 397.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.111, allocations: 0 / 397.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.1111, allocations: 15.94 kB / 397.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1111, allocations: 4 kB / 397.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.1113, allocations: 87.95 kB / 397.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000756/0.1121, allocations: 0.5391 MB / 398.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.1125, allocations: 166.7 kB / 398.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.1126, allocations: 68.97 kB / 398.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1127, allocations: 3.984 kB / 398.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.113, allocations: 185.4 kB / 398.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.113, allocations: 0 / 398.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006551/0.1137, allocations: 324 kB / 399 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.1137, allocations: 136.5 kB / 399.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004056/0.1142, allocations: 389.5 kB / 399.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.1142, allocations: 33.7 kB / 399.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.1143, allocations: 168.4 kB / 399.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.1144, allocations: 51.3 kB / 399.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.055e-05/0.1144, allocations: 4 kB / 399.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.1146, allocations: 346.8 kB / 400.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.1147, allocations: 55.97 kB / 400.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.1149, allocations: 179.4 kB / 400.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.1151, allocations: 87.81 kB / 400.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.1152, allocations: 0 / 400.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005078/0.1157, allocations: 277 kB / 400.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.1157, allocations: 10.97 kB / 400.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1157, allocations: 4 kB / 400.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1157, allocations: 4 kB / 400.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.1159, allocations: 35.91 kB / 400.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1159, allocations: 4 kB / 400.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.1161, allocations: 40.08 kB / 400.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.1161, allocations: 16 kB / 400.8 MB, free: 12.23 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,$whenCondition3,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition1,reset.y,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,set.y,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002765/0.1164, allocations: 185.2 kB / 401 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.969e-05/0.1165, allocations: 43.55 kB / 401 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.689e-05/0.1165, allocations: 31.28 kB / 401.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1166, allocations: 4 kB / 401.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.1166, allocations: 0 / 401.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1166, allocations: 0 / 401.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003057/0.1169, allocations: 313.3 kB / 401.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1169, allocations: 0 / 401.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.166e-05/0.117, allocations: 19.92 kB / 401.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.117, allocations: 3.953 kB / 401.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.117, allocations: 16.06 kB / 401.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.117, allocations: 0 / 401.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.117, allocations: 0 / 401.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004993/0.1175, allocations: 292.5 kB / 401.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.1176, allocations: 112.7 kB / 401.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.1177, allocations: 8 kB / 401.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.1178, allocations: 23.98 kB / 401.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.018e-05/0.1179, allocations: 15.97 kB / 401.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.692e-05/0.1179, allocations: 15.98 kB / 401.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.1182, allocations: 267.2 kB / 402.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1183, allocations: 0 / 402.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003631/0.1186, allocations: 79.89 kB / 402.2 MB, free: 10.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000925/0.1196, allocations: 459.2 kB / 402.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004441/0.12, allocations: 191.7 kB / 402.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.12, allocations: 4.688 kB / 402.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001832/0.1202, allocations: 87.91 kB / 402.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.1207, allocations: 73.31 kB / 403 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009186/0.1216, allocations: 0.5462 MB / 403.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.1219, allocations: 0.7758 MB / 404.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.122, allocations: 46.94 kB / 404.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.559e-05/0.1221, allocations: 27.42 kB / 404.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1221, allocations: 8 kB / 404.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of Templates: time 0.007866/0.13, allocations: 4.062 MB / 408.5 MB, free: 4.52 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: