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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00443/0.00443, allocations: 96.97 kB / 15.73 MB, free: 6.031 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.001244/0.001244, allocations: 196.3 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.168/0.168, allocations: 11.18 MB / 301.7 MB, free: 1.219 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.89 kB / 417.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2424, allocations: 51.97 MB / 469.3 MB, free: 16.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003003/0.2455, allocations: 2.155 MB / 471.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001832/0.2473, allocations: 1.327 MB / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.2474, allocations: 2.188 kB / 472.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007135/0.2482, allocations: 269 kB / 473.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004014/0.2486, allocations: 190.3 kB / 473.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008196/0.2494, allocations: 354.8 kB / 473.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.2498, allocations: 382.9 kB / 474 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.25, allocations: 71.39 kB / 474 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.2503, allocations: 162.8 kB / 474.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.2505, allocations: 156.6 kB / 474.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.331e-05/0.2505, allocations: 20.62 kB / 474.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000292/0.2508, allocations: 127.2 kB / 474.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000109/0.251, allocations: 81.22 kB / 474.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.2511, allocations: 129.5 kB / 474.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005888/0.2517, allocations: 400.2 kB / 475.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2517, allocations: 0 / 475.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2517, allocations: 0 / 475.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.2517, allocations: 0 / 475.1 MB, free: 13.13 MB / 350.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.001081/0.2528, allocations: 0.6982 MB / 475.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.2529, allocations: 13.02 kB / 475.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.891e-05/0.2529, allocations: 46.86 kB / 475.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.254e-05/0.253, allocations: 45.41 kB / 475.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.2534, allocations: 339.5 kB / 476.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.2534, allocations: 14.52 kB / 476.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.47e-05/0.2534, allocations: 13.59 kB / 476.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.2538, allocations: 195 kB / 476.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.2538, allocations: 0 / 476.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.2538, allocations: 6.219 kB / 476.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2538, allocations: 7.281 kB / 476.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002326/0.2541, allocations: 92.94 kB / 476.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006854/0.2548, allocations: 0.5275 MB / 477.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00047/0.2553, allocations: 176.1 kB / 477.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.2554, allocations: 66.7 kB / 477.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.2554, allocations: 2.625 kB / 477.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003166/0.2558, allocations: 174.7 kB / 477.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.174e-06/0.2558, allocations: 3.984 kB / 477.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.000694/0.2565, allocations: 319.8 kB / 477.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.2565, allocations: 137.9 kB / 477.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003775/0.2569, allocations: 387.2 kB / 478.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.257, allocations: 37.45 kB / 478.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.969e-05/0.2571, allocations: 171.3 kB / 478.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.2571, allocations: 56.88 kB / 478.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.2572, allocations: 49.92 kB / 478.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.2572, allocations: 347 kB / 479 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.2574, allocations: 53.5 kB / 479 MB, free: 9.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.2576, allocations: 182.5 kB / 479.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003517/0.2579, allocations: 248.8 kB / 479.4 MB, free: 9.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2579, allocations: 5.156 kB / 479.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004466/0.2584, allocations: 272.2 kB / 479.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2584, allocations: 7.469 kB / 479.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2584, allocations: 2.781 kB / 479.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2584, allocations: 4.5 kB / 479.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.2586, allocations: 40.61 kB / 479.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.2586, allocations: 12.86 kB / 479.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000145/0.2588, allocations: 28.81 kB / 479.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2588, allocations: 13.11 kB / 479.8 MB, free: 9.34 MB / 350.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.0001794/0.259, allocations: 193.4 kB / 480 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.259, allocations: 35.64 kB / 480 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.218e-05/0.2591, allocations: 33.47 kB / 480.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2591, allocations: 7.156 kB / 480.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.2591, allocations: 0 / 480.1 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.2591, allocations: 3.984 kB / 480.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.2593, allocations: 310.6 kB / 480.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2593, allocations: 0 / 480.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.178e-05/0.2594, allocations: 14.81 kB / 480.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2594, allocations: 0 / 480.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.2594, allocations: 11.77 kB / 480.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.2594, allocations: 1.156 kB / 480.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2595, allocations: 0 / 480.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.2599, allocations: 286.7 kB / 480.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-05/0.26, allocations: 117.1 kB / 480.8 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.646e-05/0.26, allocations: 11.53 kB / 480.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.2602, allocations: 20.41 kB / 480.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.2602, allocations: 15.7 kB / 480.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.2603, allocations: 7.375 kB / 480.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000254/0.2605, allocations: 279 kB / 481.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2605, allocations: 3.938 kB / 481.1 MB, free: 8.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003739/0.2609, allocations: 74.14 kB / 481.2 MB, free: 8.305 MB / 350.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.002001/0.2629, allocations: 1.18 MB / 482.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004094/0.2633, allocations: 186.1 kB / 482.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.2634, allocations: 0.75 kB / 482.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.2635, allocations: 86.69 kB / 482.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000425/0.264, allocations: 84.5 kB / 482.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003442/0.2674, allocations: 2.98 MB / 485.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.2677, allocations: 0.7847 MB / 486.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001788/0.2678, allocations: 45.08 kB / 486.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.268, allocations: 98.64 kB / 486.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.268, allocations: 0 / 486.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03083/0.2988, allocations: 7.871 MB / 494.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.43/8.728, allocations: 8.062 kB / 494.5 MB, free: 15.73 MB / 366.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/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)