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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007267/0.0007267, allocations: 76.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007696/0.0007696, allocations: 173.2 kB / 22.46 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8653/0.8653, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03933/0.03933, allocations: 8.614 MB / 267.8 MB, free: 5.121 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.733e-06/1.733e-06, allocations: 0 / 395.1 MB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.186e-05/2.359e-05, allocations: 5.375 kB / 395.1 MB, free: 2.645 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002599/0.002622, allocations: 2.12 MB / 397.2 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.004396, allocations: 1.43 MB / 398.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.004539, allocations: 7.938 kB / 398.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006074/0.005146, allocations: 275.1 kB / 398.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004219/0.005568, allocations: 266.4 kB / 399.2 MB, free: 14.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.006135, allocations: 314.9 kB / 399.5 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003523/0.006487, allocations: 406.8 kB / 399.9 MB, free: 13.83 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.006613, allocations: 53.25 kB / 399.9 MB, free: 13.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002645/0.006878, allocations: 227.4 kB / 400.1 MB, free: 13.56 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.007017, allocations: 135.6 kB / 400.3 MB, free: 13.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.891e-05/0.007046, allocations: 24 kB / 400.3 MB, free: 13.4 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.007241, allocations: 139.8 kB / 400.4 MB, free: 13.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.007324, allocations: 83.69 kB / 400.5 MB, free: 13.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.631e-05/0.0074, allocations: 87.67 kB / 400.6 MB, free: 13.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000406/0.007806, allocations: 430.7 kB / 401 MB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.007808, allocations: 3.938 kB / 401 MB, free: 12.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.00781, allocations: 0 / 401 MB, free: 12.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.007815, allocations: 0 / 401 MB, free: 12.67 MB / 378.7 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.0008303/0.008646, allocations: 0.636 MB / 401.7 MB, free: 11.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.008687, allocations: 12.03 kB / 401.7 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.008729, allocations: 46.73 kB / 401.7 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.008875, allocations: 48.69 kB / 401.8 MB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.009196, allocations: 273.6 kB / 402 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.009213, allocations: 8.375 kB / 402 MB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.009232, allocations: 16.36 kB / 402.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.009491, allocations: 221.1 kB / 402.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.009498, allocations: 0 / 402.3 MB, free: 11.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.009513, allocations: 15.88 kB / 402.3 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.009518, allocations: 0 / 402.3 MB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.009666, allocations: 99.92 kB / 402.4 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005535/0.01022, allocations: 479.4 kB / 402.9 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004208/0.01064, allocations: 162.8 kB / 403 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.816e-05/0.01074, allocations: 60.83 kB / 403.1 MB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.01076, allocations: 4 kB / 403.1 MB, free: 10.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.011, allocations: 236.3 kB / 403.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 2.204e-06/0.011, allocations: 3.984 kB / 403.3 MB, free: 10.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004649/0.01147, allocations: 333.2 kB / 403.6 MB, free: 9.867 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.01151, allocations: 85.09 kB / 403.7 MB, free: 9.766 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.01181, allocations: 413.6 kB / 404.1 MB, free: 9.348 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.01183, allocations: 33.7 kB / 404.2 MB, free: 9.309 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.01192, allocations: 172.5 kB / 404.3 MB, free: 9.137 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.01195, allocations: 55.59 kB / 404.4 MB, free: 9.082 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.355e-05/0.01201, allocations: 49.7 kB / 404.4 MB, free: 9.027 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.388e-05/0.0121, allocations: 350.7 kB / 404.8 MB, free: 8.676 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.52e-05/0.01219, allocations: 59.97 kB / 404.8 MB, free: 8.617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.01234, allocations: 255.1 kB / 405.1 MB, free: 8.301 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/0.0126, allocations: 250.9 kB / 405.3 MB, free: 8.016 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.0126, allocations: 0 / 405.3 MB, free: 8.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002999/0.0129, allocations: 285.1 kB / 405.6 MB, free: 7.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.01292, allocations: 11.94 kB / 405.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.01292, allocations: 0 / 405.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.01294, allocations: 4 kB / 405.6 MB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.155e-05/0.01302, allocations: 43.84 kB / 405.7 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.01302, allocations: 4 kB / 405.7 MB, free: 7.668 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.639e-05/0.01311, allocations: 32.17 kB / 405.7 MB, free: 7.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.01312, allocations: 19.94 kB / 405.7 MB, free: 7.617 MB / 378.7 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.0001595/0.01328, allocations: 173.5 kB / 405.9 MB, free: 7.438 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.01347, allocations: 43.69 kB / 405.9 MB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003464/0.01381, allocations: 288.9 kB / 406.2 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.01381, allocations: 4 kB / 406.2 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.01382, allocations: 0 / 406.2 MB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.01382, allocations: 3.984 kB / 406.2 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.01402, allocations: 276.6 kB / 406.5 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.01403, allocations: 0 / 406.5 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.769e-05/0.01406, allocations: 15.98 kB / 406.5 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.01406, allocations: 0 / 406.5 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.01408, allocations: 11.98 kB / 406.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.01408, allocations: 0 / 406.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01408, allocations: 4 kB / 406.5 MB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.01439, allocations: 307.2 kB / 406.8 MB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.439e-05/0.01443, allocations: 39.7 kB / 406.9 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.01446, allocations: 11.94 kB / 406.9 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.619e-05/0.01452, allocations: 15.97 kB / 406.9 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.01457, allocations: 23.91 kB / 406.9 MB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.01459, allocations: 8 kB / 406.9 MB, free: 6.344 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002114/0.0148, allocations: 295.2 kB / 407.2 MB, free: 6.059 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0148, allocations: 4 kB / 407.2 MB, free: 6.055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002489/0.01505, allocations: 75.92 kB / 407.3 MB, free: 5.98 MB / 378.7 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,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 13 * 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.001153/0.0162, allocations: 1.227 MB / 408.5 MB, free: 4.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000289/0.01649, allocations: 187.2 kB / 408.7 MB, free: 4.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01649, allocations: 0 / 408.7 MB, free: 4.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.01661, allocations: 87.89 kB / 408.8 MB, free: 4.645 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.01686, allocations: 72.22 kB / 408.8 MB, free: 4.574 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.01937, allocations: 3.086 MB / 411.9 MB, free: 1.336 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001056/0.01948, allocations: 173.1 kB / 412.1 MB, free: 1.145 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.422e-05/0.01957, allocations: 42.94 kB / 412.1 MB, free: 1.102 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.01968, allocations: 108.5 kB / 412.2 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01968, allocations: 4 kB / 412.3 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.03938, allocations: 9.079 MB / 421.3 MB, free: 8 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.063, allocations: 13.44 kB / 421.3 MB, free: 7.988 MB / 394.7 MB " [Timeout remaining time 653] (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: 8.827599855139852] Failed to read output from testmodel.py, exit status != 0: 7.166381414048374 7.174370273 7.164988396 Calling exit ...