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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 105.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 247.8 MB, free: 3.754 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06111/0.06111, allocations: 11.35 MB / 314 MB, free: 0.8008 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.89 kB / 437.3 MB, free: 8.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2425, allocations: 54.83 MB / 492.2 MB, free: 23.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003161/0.2457, allocations: 2.166 MB / 494.3 MB, free: 22.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.2475, allocations: 1.34 MB / 495.7 MB, free: 21.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.2476, allocations: 6.656 kB / 495.7 MB, free: 21.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007261/0.2484, allocations: 265.4 kB / 495.9 MB, free: 21.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003867/0.2488, allocations: 200.9 kB / 496.1 MB, free: 21.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007448/0.2495, allocations: 355.2 kB / 496.5 MB, free: 20.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.2499, allocations: 370.2 kB / 496.8 MB, free: 20.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.25, allocations: 46.7 kB / 496.9 MB, free: 20.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.2502, allocations: 169.5 kB / 497 MB, free: 20.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.2503, allocations: 164.5 kB / 497.2 MB, free: 20.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.936e-05/0.2504, allocations: 21.47 kB / 497.2 MB, free: 20.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.2506, allocations: 127.4 kB / 497.3 MB, free: 20.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.901e-05/0.2507, allocations: 77.14 kB / 497.4 MB, free: 20.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.2508, allocations: 135.8 kB / 497.6 MB, free: 20.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.2512, allocations: 399.2 kB / 497.9 MB, free: 20.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2512, allocations: 0 / 497.9 MB, free: 20.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2512, allocations: 3.938 kB / 497.9 MB, free: 20.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.2512, allocations: 0 / 497.9 MB, free: 20.25 MB / 366.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.0009506/0.2522, allocations: 0.6934 MB / 498.6 MB, free: 19.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2522, allocations: 13.33 kB / 498.7 MB, free: 19.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.2522, allocations: 48.5 kB / 498.7 MB, free: 19.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.96e-05/0.2523, allocations: 41.52 kB / 498.7 MB, free: 19.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.2527, allocations: 337.4 kB / 499.1 MB, free: 19.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.2527, allocations: 14.16 kB / 499.1 MB, free: 19.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.2527, allocations: 17.69 kB / 499.1 MB, free: 19.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.253, allocations: 195.2 kB / 499.3 MB, free: 19.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.253, allocations: 0 / 499.3 MB, free: 19.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.2531, allocations: 10.48 kB / 499.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.321e-06/0.2531, allocations: 3.406 kB / 499.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.2533, allocations: 88.45 kB / 499.4 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006251/0.2539, allocations: 0.5278 MB / 499.9 MB, free: 18.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004118/0.2543, allocations: 162.8 kB / 0.4884 GB, free: 18.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.2545, allocations: 61 kB / 0.4884 GB, free: 18.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.2545, allocations: 2.125 kB / 0.4884 GB, free: 18.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.2548, allocations: 190.2 kB / 0.4886 GB, free: 18.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.2548, allocations: 4 kB / 0.4886 GB, free: 18.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006324/0.2554, allocations: 314.2 kB / 0.4889 GB, free: 18.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.2554, allocations: 132.1 kB / 0.489 GB, free: 17.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.2559, allocations: 392.1 kB / 0.4894 GB, free: 17.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.2559, allocations: 33.23 kB / 0.4894 GB, free: 17.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.256, allocations: 168 kB / 0.4896 GB, free: 17.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.945e-05/0.256, allocations: 60.05 kB / 0.4897 GB, free: 17.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.576e-05/0.2561, allocations: 57.53 kB / 0.4897 GB, free: 17.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.774e-05/0.2561, allocations: 344 kB / 0.49 GB, free: 17.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.2563, allocations: 52.22 kB / 0.4901 GB, free: 17.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.2564, allocations: 179.6 kB / 0.4903 GB, free: 16.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003405/0.2568, allocations: 253.8 kB / 0.4905 GB, free: 16.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2568, allocations: 1.062 kB / 0.4905 GB, free: 16.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004319/0.2572, allocations: 272.5 kB / 0.4908 GB, free: 16.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2572, allocations: 6.594 kB / 0.4908 GB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2572, allocations: 3.438 kB / 0.4908 GB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2572, allocations: 4.344 kB / 0.4908 GB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.2574, allocations: 41.09 kB / 0.4908 GB, free: 16.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2574, allocations: 3.812 kB / 0.4908 GB, free: 16.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.2575, allocations: 36.64 kB / 0.4909 GB, free: 16.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/0.2576, allocations: 14.72 kB / 0.4909 GB, free: 16.53 MB / 366.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.0001703/0.2577, allocations: 188.4 kB / 0.491 GB, free: 16.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.821e-05/0.2578, allocations: 43.62 kB / 0.4911 GB, free: 16.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.307e-05/0.2578, allocations: 34.41 kB / 0.4911 GB, free: 16.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2578, allocations: 6.328 kB / 0.4911 GB, free: 16.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2578, allocations: 0 / 0.4911 GB, free: 16.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2579, allocations: 0 / 0.4911 GB, free: 16.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.2581, allocations: 314.6 kB / 0.4914 GB, free: 16.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2581, allocations: 0 / 0.4914 GB, free: 16.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.717e-05/0.2581, allocations: 13.95 kB / 0.4914 GB, free: 16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2581, allocations: 1.156 kB / 0.4914 GB, free: 16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.2582, allocations: 7.156 kB / 0.4914 GB, free: 16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2582, allocations: 1.062 kB / 0.4914 GB, free: 16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2582, allocations: 7.984 kB / 0.4915 GB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004411/0.2586, allocations: 288.5 kB / 0.4917 GB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.2587, allocations: 113.9 kB / 0.4918 GB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.713e-05/0.2587, allocations: 11.45 kB / 0.4919 GB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2588, allocations: 16.36 kB / 0.4919 GB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.2589, allocations: 19.11 kB / 0.4919 GB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.2589, allocations: 11.77 kB / 0.4919 GB, free: 15.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002311/0.2591, allocations: 278.9 kB / 0.4922 GB, free: 15.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2591, allocations: 0 / 0.4922 GB, free: 15.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003449/0.2595, allocations: 70.62 kB / 0.4922 GB, free: 15.49 MB / 366.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.001948/0.2614, allocations: 1.182 MB / 0.4934 GB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003843/0.2618, allocations: 169.8 kB / 0.4935 GB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2618, allocations: 0.6875 kB / 0.4935 GB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.262, allocations: 86.25 kB / 0.4936 GB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.2624, allocations: 86.36 kB / 0.4937 GB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.2655, allocations: 2.977 MB / 0.4966 GB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001763/0.2656, allocations: 0.7777 MB / 0.4974 GB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.2658, allocations: 43.78 kB / 0.4974 GB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.2659, allocations: 107.7 kB / 0.4975 GB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2659, allocations: 0 / 0.4975 GB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03179/0.2977, allocations: 7.92 MB / 0.5053 GB, free: 7.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.298/8.596, allocations: 7.922 kB / 0.5053 GB, free: 7.348 MB / 366.1 MB " [Timeout remaining time 651] (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 --stepSize=0.008 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.108520994894207] Failed to read output from testmodel.py, exit status != 0: 8.723666378296912 8.735595797 8.481473669 Calling exit ...