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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004438/0.004437, allocations: 182.9 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06484/0.06484, allocations: 10.59 MB / 18.45 MB, free: 2.188 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.412/2.412, allocations: 205.2 MB / 226.5 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001127/0.001127, allocations: 82.42 kB / 276.9 MB, free: 15.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1761/0.1773, allocations: 56.14 MB / 333 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.5761, allocations: 49.99 MB / 383 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.6931, allocations: 81.79 MB / 464.8 MB, free: 5.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003845/0.6936, allocations: 87.94 kB / 464.9 MB, free: 5.785 MB / 346.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.03236/0.726, allocations: 10.37 MB / 475.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.726, allocations: 12 kB / 475.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.7262, allocations: 35.53 kB / 475.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000722/0.7269, allocations: 334.9 kB / 475.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.727, allocations: 4 kB / 475.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.727, allocations: 8 kB / 475.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002256/0.7272, allocations: 79.98 kB / 475.7 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.7276, allocations: 168.1 kB / 475.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.7276, allocations: 0 / 475.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.7276, allocations: 0 / 475.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.7276, allocations: 7.906 kB / 475.9 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009797/0.7286, allocations: 0.5319 MB / 476.4 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003172/0.7289, allocations: 134.9 kB / 476.6 MB, free: 9.957 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.7291, allocations: 56.8 kB / 476.6 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.7291, allocations: 4 kB / 476.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.7294, allocations: 153.6 kB / 476.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.753e-06/0.7294, allocations: 0 / 476.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004361/0.7298, allocations: 187.2 kB / 477 MB, free: 9.539 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.67e-05/0.7299, allocations: 140.7 kB / 477.1 MB, free: 9.371 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/0.7304, allocations: 315.4 kB / 477.4 MB, free: 9.055 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.7304, allocations: 33.7 kB / 477.4 MB, free: 9.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.7305, allocations: 128.5 kB / 477.6 MB, free: 8.887 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.929e-05/0.7306, allocations: 47.41 kB / 477.6 MB, free: 8.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.7306, allocations: 0 / 477.6 MB, free: 8.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.7308, allocations: 346.8 kB / 477.9 MB, free: 8.492 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.879e-05/0.7309, allocations: 43.98 kB / 478 MB, free: 8.449 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.7311, allocations: 165.1 kB / 478.2 MB, free: 8.234 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.7312, allocations: 69.5 kB / 478.2 MB, free: 8.168 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.7312, allocations: 0 / 478.2 MB, free: 8.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004078/0.7316, allocations: 225.3 kB / 478.4 MB, free: 7.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.7317, allocations: 7.984 kB / 478.4 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.7317, allocations: 4 kB / 478.5 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.7317, allocations: 8 kB / 478.5 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.7319, allocations: 43.86 kB / 478.5 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.7319, allocations: 4 kB / 478.5 MB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.7321, allocations: 28.17 kB / 478.5 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.7322, allocations: 15.94 kB / 478.6 MB, free: 7.832 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(fixed = false ) "output" type: Boolean counter.CUd:DISCRETE(fixed = false ) type: Boolean counter.CDd:DISCRETE(fixed = false ) type: Boolean counter.Sd:DISCRETE(fixed = false ) type: Boolean counter.Q:DISCRETE(fixed = false ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = false ) 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,counter.R,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,counter.S,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled) * Number of discrete 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.0002598/0.7324, allocations: 132.6 kB / 478.7 MB, free: 7.699 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.878e-05/0.7325, allocations: 31.62 kB / 478.7 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005453/0.7331, allocations: 205.3 kB / 478.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.7331, allocations: 4 kB / 478.9 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.7331, allocations: 0 / 478.9 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.7331, allocations: 7.922 kB / 478.9 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.7335, allocations: 289.9 kB / 479.2 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.7335, allocations: 0.5625 kB / 479.2 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.183e-05/0.7336, allocations: 23.98 kB / 479.2 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.7337, allocations: 0 / 479.2 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.7337, allocations: 4 kB / 479.2 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.7337, allocations: 3.984 kB / 479.2 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.7337, allocations: 8 kB / 479.2 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004667/0.7342, allocations: 231.8 kB / 479.5 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006373/0.7348, allocations: 0.6026 MB / 480.1 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.735, allocations: 120.6 kB / 480.2 MB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.807e-05/0.7351, allocations: 4 kB / 480.2 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.7353, allocations: 23.97 kB / 480.2 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.287e-05/0.7354, allocations: 15.98 kB / 480.2 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.7354, allocations: 7.984 kB / 480.2 MB, free: 6.031 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003456/0.7357, allocations: 247.1 kB / 480.5 MB, free: 5.789 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001169/0.7369, allocations: 87.83 kB / 480.6 MB, free: 5.703 MB / 362.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.S,counter.R,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,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) * 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 (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.0009632/0.7379, allocations: 366.5 kB / 480.9 MB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003914/0.7383, allocations: 167.7 kB / 481.1 MB, free: 5.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.7383, allocations: 0 / 481.1 MB, free: 5.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.7385, allocations: 87.92 kB / 481.2 MB, free: 5.133 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.7389, allocations: 59.12 kB / 481.2 MB, free: 5.078 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.7401, allocations: 369.7 kB / 481.6 MB, free: 4.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006903/0.7408, allocations: 0.818 MB / 482.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.7408, allocations: 0 / 482.4 MB, free: 3.844 MB / 362.7 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)