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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000768/0.000768, allocations: 92 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.0007828/0.0007828, 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.215/1.215, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05183/0.05183, allocations: 10.74 MB / 281.1 MB, free: 10.55 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.0004537/0.0004537, allocations: 12 kB / 341.7 MB, free: 23.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06623/0.06669, allocations: 50.01 MB / 391.7 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002079/0.06881, allocations: 1.785 MB / 393.5 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.07027, allocations: 1.163 MB / 394.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.904e-05/0.07038, allocations: 0 / 394.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005975/0.07099, allocations: 239.3 kB / 394.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003271/0.07132, allocations: 163.4 kB / 395.1 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006498/0.07198, allocations: 279.5 kB / 395.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003152/0.07231, allocations: 339 kB / 395.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.07243, allocations: 49.14 kB / 395.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.07261, allocations: 135.4 kB / 395.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.07277, allocations: 139.4 kB / 396 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.0728, allocations: 4 kB / 396 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.07297, allocations: 99.86 kB / 396.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.849e-05/0.07306, allocations: 63.75 kB / 396.2 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.899e-05/0.07312, allocations: 77.5 kB / 396.2 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002667/0.0734, allocations: 287.6 kB / 396.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.07341, allocations: 0 / 396.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.07341, allocations: 0 / 396.5 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.07342, allocations: 0 / 396.5 MB, free: 0.8438 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.0008009/0.07423, allocations: 0.6339 MB / 397.2 MB, free: 152 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.07427, allocations: 12.03 kB / 397.2 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.805e-05/0.07432, allocations: 50.55 kB / 397.2 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.239e-05/0.07438, allocations: 35.53 kB / 397.2 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.07472, allocations: 319 kB / 397.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.07475, allocations: 8 kB / 397.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/0.07478, allocations: 12 kB / 397.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.07512, allocations: 204 kB / 397.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.07514, allocations: 3.953 kB / 397.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.07517, allocations: 8 kB / 397.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.07518, allocations: 4 kB / 397.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.07541, allocations: 95.94 kB / 397.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006604/0.07608, allocations: 0.5313 MB / 398.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.07649, allocations: 178.6 kB / 398.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.07664, allocations: 69 kB / 398.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.07667, allocations: 4 kB / 398.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/0.07696, allocations: 177.5 kB / 398.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.432e-06/0.07698, allocations: 0 / 398.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006072/0.07759, allocations: 323.9 kB / 399.2 MB, free: 14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.19e-05/0.07766, allocations: 144.5 kB / 399.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.07803, allocations: 377.6 kB / 399.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.07806, allocations: 33.7 kB / 399.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.07817, allocations: 164.5 kB / 399.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.07822, allocations: 59.27 kB / 399.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.07824, allocations: 11.94 kB / 399.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.07835, allocations: 346.8 kB / 400.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.07848, allocations: 51.97 kB / 400.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.07868, allocations: 190.4 kB / 400.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.07885, allocations: 79.83 kB / 400.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.07886, allocations: 3.953 kB / 400.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004354/0.07931, allocations: 265 kB / 400.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.07934, allocations: 8 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.07935, allocations: 4 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.07937, allocations: 4 kB / 400.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.07951, allocations: 43.91 kB / 400.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.07953, allocations: 7.938 kB / 400.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.07968, allocations: 40.08 kB / 401 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.07971, allocations: 8 kB / 401 MB, free: 12.08 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.0001872/0.0799, allocations: 189.4 kB / 401.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.07995, allocations: 35.58 kB / 401.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.247e-05/0.08001, allocations: 35.28 kB / 401.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.08002, allocations: 3.938 kB / 401.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.08003, allocations: 0 / 401.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.08004, allocations: 0 / 401.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.08029, allocations: 313.4 kB / 401.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.0803, allocations: 0 / 401.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.787e-05/0.08037, allocations: 15.94 kB / 401.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.08039, allocations: 4 kB / 401.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.08041, allocations: 11.98 kB / 401.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.08042, allocations: 4 kB / 401.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.08042, allocations: 0 / 401.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004394/0.08087, allocations: 288.5 kB / 401.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.989e-05/0.08095, allocations: 112.7 kB / 401.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.081, allocations: 8 kB / 402 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.08114, allocations: 27.97 kB / 402 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.751e-05/0.0812, allocations: 11.98 kB / 402 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.08123, allocations: 15.98 kB / 402 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.08148, allocations: 271.2 kB / 402.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08149, allocations: 0 / 402.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.08181, allocations: 79.89 kB / 402.4 MB, free: 10.58 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.001437/0.08325, allocations: 1.17 MB / 403.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003853/0.08365, allocations: 187.9 kB / 403.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.08366, allocations: 0 / 403.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.08384, allocations: 91.91 kB / 403.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.08422, allocations: 77.78 kB / 403.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.08657, allocations: 1.777 MB / 405.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.08685, allocations: 0.7716 MB / 406.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000126/0.08699, allocations: 46.94 kB / 406.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.08712, allocations: 95.41 kB / 406.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of SimCode: time 1.362e-06/0.08713, allocations: 0 / 406.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01758/0.1047, allocations: 7.069 MB / 413.6 MB, free: 15.33 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.105, allocations: 263.8 kB / 413.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/1.828, allocations: 0 / 413.9 MB, free: 14.98 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) Environment - environmentSimulation: