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.00081/0.00081, allocations: 80.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.0008701/0.0008701, allocations: 169.9 kB / 22.45 MB, free: 2.109 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.8993/0.8993, allocations: 177.1 MB / 202.7 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.03487/0.03487, allocations: 8.619 MB / 267.8 MB, free: 5.109 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.754e-06/1.754e-06, allocations: 0 / 395.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.167e-05/1.343e-05, allocations: 2.281 kB / 395.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002976/0.002989, allocations: 2.108 MB / 397.2 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001615/0.004604, allocations: 1.445 MB / 398.6 MB, free: 15.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.004722, allocations: 7.938 kB / 398.6 MB, free: 15.08 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006003/0.005322, allocations: 277.4 kB / 398.9 MB, free: 14.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003765/0.005698, allocations: 262.8 kB / 399.2 MB, free: 14.55 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004831/0.006181, allocations: 313.9 kB / 399.5 MB, free: 14.25 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003311/0.006513, allocations: 410.8 kB / 399.9 MB, free: 13.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.006627, allocations: 45.31 kB / 399.9 MB, free: 13.8 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.006879, allocations: 227.4 kB / 400.1 MB, free: 13.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.007013, allocations: 135.6 kB / 400.3 MB, free: 13.45 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.007042, allocations: 20 kB / 400.3 MB, free: 13.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.007217, allocations: 139.8 kB / 400.4 MB, free: 13.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.043e-05/0.007297, allocations: 87.67 kB / 400.5 MB, free: 13.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.98e-05/0.007367, allocations: 75.77 kB / 400.6 MB, free: 13.13 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.007722, allocations: 446.5 kB / 401 MB, free: 12.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.007724, allocations: 0 / 401 MB, free: 12.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.007725, allocations: 0 / 401 MB, free: 12.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.007729, allocations: 0 / 401 MB, free: 12.69 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.0007304/0.008459, allocations: 0.6399 MB / 401.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.008493, allocations: 8.031 kB / 401.7 MB, free: 12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.597e-05/0.008529, allocations: 46.73 kB / 401.7 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.008655, allocations: 48.69 kB / 401.8 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.00895, allocations: 273.6 kB / 402 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.008967, allocations: 12.38 kB / 402 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.778e-05/0.008985, allocations: 12.38 kB / 402 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/0.009229, allocations: 221 kB / 402.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.009238, allocations: 4 kB / 402.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.009252, allocations: 8 kB / 402.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.009259, allocations: 4 kB / 402.3 MB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.009408, allocations: 95.94 kB / 402.4 MB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005178/0.009926, allocations: 487.3 kB / 402.8 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002899/0.01022, allocations: 158.8 kB / 403 MB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.83e-05/0.0103, allocations: 64.81 kB / 403.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.01032, allocations: 4 kB / 403.1 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.01055, allocations: 232.3 kB / 403.3 MB, free: 10.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.01055, allocations: 0 / 403.3 MB, free: 10.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004544/0.011, allocations: 336.6 kB / 403.6 MB, free: 9.891 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.01105, allocations: 89.08 kB / 403.7 MB, free: 9.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.01135, allocations: 417.6 kB / 404.1 MB, free: 9.363 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.01137, allocations: 33.7 kB / 404.2 MB, free: 9.324 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.01146, allocations: 168.6 kB / 404.3 MB, free: 9.156 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.903e-05/0.0115, allocations: 55.59 kB / 404.4 MB, free: 9.102 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.292e-05/0.01155, allocations: 53.69 kB / 404.4 MB, free: 9.043 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.01165, allocations: 346.8 kB / 404.8 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.194e-05/0.01173, allocations: 55.97 kB / 404.8 MB, free: 8.641 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.01189, allocations: 256.4 kB / 405.1 MB, free: 8.324 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.01216, allocations: 250.9 kB / 405.3 MB, free: 8.039 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.01216, allocations: 8 kB / 405.3 MB, free: 8.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002974/0.01246, allocations: 273.1 kB / 405.6 MB, free: 7.758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.01247, allocations: 15.88 kB / 405.6 MB, free: 7.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.01248, allocations: 4 kB / 405.6 MB, free: 7.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.01249, allocations: 8.344 kB / 405.6 MB, free: 7.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.604e-05/0.01256, allocations: 31.92 kB / 405.6 MB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.01257, allocations: 7.984 kB / 405.7 MB, free: 7.691 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.01265, allocations: 27.97 kB / 405.7 MB, free: 7.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.01267, allocations: 23.98 kB / 405.7 MB, free: 7.641 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.0001667/0.01284, allocations: 181.5 kB / 405.9 MB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.295e-05/0.01287, allocations: 43.7 kB / 405.9 MB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003547/0.01322, allocations: 288.8 kB / 406.2 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.01323, allocations: 0 / 406.2 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01323, allocations: 0 / 406.2 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.01323, allocations: 4 kB / 406.2 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001999/0.01343, allocations: 268.5 kB / 406.5 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.01344, allocations: 0 / 406.5 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/0.01348, allocations: 19.98 kB / 406.5 MB, free: 6.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.01348, allocations: 4 kB / 406.5 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.01349, allocations: 4 kB / 406.5 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.0135, allocations: 4 kB / 406.5 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.0135, allocations: 3.984 kB / 406.5 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.01381, allocations: 307.6 kB / 406.8 MB, free: 6.465 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.578e-05/0.01385, allocations: 39.69 kB / 406.8 MB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/0.01388, allocations: 8 kB / 406.9 MB, free: 6.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.831e-05/0.01395, allocations: 19.98 kB / 406.9 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.014, allocations: 23.91 kB / 406.9 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.01402, allocations: 15.98 kB / 406.9 MB, free: 6.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002164/0.01424, allocations: 291.2 kB / 407.2 MB, free: 6.078 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01424, allocations: 0 / 407.2 MB, free: 6.078 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002451/0.01448, allocations: 75.92 kB / 407.3 MB, free: 6.004 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.001132/0.01561, allocations: 1.222 MB / 408.5 MB, free: 4.934 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002719/0.01589, allocations: 187.6 kB / 408.7 MB, free: 4.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01589, allocations: 4 kB / 408.7 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.016, allocations: 83.89 kB / 408.8 MB, free: 4.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.01626, allocations: 86.25 kB / 408.8 MB, free: 4.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.01885, allocations: 3.084 MB / 411.9 MB, free: 1.355 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.01897, allocations: 177.1 kB / 412.1 MB, free: 1.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.01908, allocations: 54.88 kB / 412.2 MB, free: 1.105 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.01919, allocations: 108.5 kB / 412.3 MB, free: 1 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01919, allocations: 0 / 412.3 MB, free: 1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.03939, allocations: 9.061 MB / 421.3 MB, free: 8.016 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.061/7.1, allocations: 11.98 kB / 421.3 MB, free: 8.004 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 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: 9.020505739375949] Failed to read output from testmodel.py, exit status != 0: 7.2065863236784935 7.216308125 7.206401341 Calling exit ...