Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.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: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") [: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.003948/0.003949, allocations: 183.3 kB / 7.457 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06541/0.06541, allocations: 10.59 MB / 18.46 MB, free: 2.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.699/1.699, allocations: 205.2 MB / 226.5 MB, free: 0.5156 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.001079/0.001079, allocations: 93.58 kB / 276.9 MB, free: 15.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.185e-06/8.415e-06, allocations: 0 / 332.9 MB, free: 7.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3607, allocations: 49.99 MB / 382.9 MB, free: 39.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.4755, allocations: 80.03 MB / 463 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.4759, allocations: 79.95 kB / 463 MB, free: 7.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02856/0.5044, allocations: 8.6 MB / 471.6 MB, free: 14.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.216e-05/0.5045, allocations: 4 kB / 471.6 MB, free: 14.96 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.00113/0.5057, allocations: 0.5757 MB / 472.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.5058, allocations: 12.02 kB / 472.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.506, allocations: 39.53 kB / 472.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.507, allocations: 351.8 kB / 472.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.5071, allocations: 4 kB / 472.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.5071, allocations: 4 kB / 472.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001941/0.5073, allocations: 55.98 kB / 472.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.5076, allocations: 124 kB / 472.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.5076, allocations: 3.984 kB / 472.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.5076, allocations: 4 kB / 472.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.5077, allocations: 4 kB / 472.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009864/0.5086, allocations: 469.1 kB / 473.3 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002415/0.5089, allocations: 116.9 kB / 473.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.277e-05/0.509, allocations: 48.84 kB / 473.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.509, allocations: 0 / 473.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.5092, allocations: 99.38 kB / 473.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.5092, allocations: 0 / 473.5 MB, free: 12.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005543/0.5098, allocations: 161.2 kB / 473.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.5099, allocations: 106.8 kB / 473.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006816/0.5106, allocations: 417.9 kB / 474.2 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.5107, allocations: 29.7 kB / 474.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.5108, allocations: 116.3 kB / 474.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.753e-05/0.5109, allocations: 35.61 kB / 474.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.5109, allocations: 0 / 474.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002533/0.5112, allocations: 342.8 kB / 474.7 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.862e-05/0.5113, allocations: 40.38 kB / 474.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.5114, allocations: 124.5 kB / 474.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.5116, allocations: 55.91 kB / 474.9 MB, free: 11.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5116, allocations: 224 / 474.9 MB, free: 11.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003574/0.5119, allocations: 173.1 kB / 475.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.512, allocations: 7.938 kB / 475.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.512, allocations: 4 kB / 475.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.512, allocations: 3.984 kB / 475.1 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.5122, allocations: 28.66 kB / 475.1 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.5122, allocations: 7.984 kB / 475.1 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.5124, allocations: 15.84 kB / 475.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.874e-05/0.5124, allocations: 8 kB / 475.2 MB, free: 11.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.flipFlopSR.y1,flipFlopSR.y1,$PRE.flipFlopSR.y2,flipFlopSR.y2,$whenCondition3,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition1,flipFlopSR.u2,resetSIGNAL.combiTimeTable.nextTimeEvent,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled,flipFlopSR.u1,setSIGNAL.combiTimeTable.nextTimeEvent,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001447/0.5126, allocations: 119.5 kB / 475.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.533e-05/0.5126, allocations: 35.53 kB / 475.3 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004868/0.5131, allocations: 177.2 kB / 475.5 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.5132, allocations: 7.906 kB / 475.5 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.5132, allocations: 0 / 475.5 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.5132, allocations: 0 / 475.5 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.5136, allocations: 290 kB / 475.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.5136, allocations: 0 / 475.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.364e-05/0.5136, allocations: 8 kB / 475.8 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.5137, allocations: 5.312 kB / 475.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.5137, allocations: 7.984 kB / 475.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.5137, allocations: 4.125 kB / 475.8 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.5137, allocations: 7.938 kB / 475.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003739/0.5141, allocations: 195.6 kB / 476 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.5143, allocations: 136.5 kB / 476.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.48e-05/0.5143, allocations: 4 kB / 476.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.5145, allocations: 7.984 kB / 476.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.163e-05/0.5145, allocations: 15.98 kB / 476.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.5146, allocations: 8 kB / 476.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003971/0.515, allocations: 324.5 kB / 476.5 MB, free: 9.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004072/0.5154, allocations: 56 kB / 476.5 MB, free: 9.699 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: 11 ($whenCondition3,$whenCondition2,$whenCondition1,flipFlopSR.u1,flipFlopSR.y1,flipFlopSR.u2,flipFlopSR.y2,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001079/0.5165, allocations: 350.3 kB / 476.9 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003331/0.5168, allocations: 127.9 kB / 477 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5169, allocations: 4.125 kB / 477 MB, free: 9.266 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.517, allocations: 67.92 kB / 477.1 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004987/0.5175, allocations: 57.7 kB / 477.1 MB, free: 9.145 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.5187, allocations: 404.5 kB / 477.5 MB, free: 8.719 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006966/0.5194, allocations: 0.8173 MB / 478.4 MB, free: 7.879 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5194, allocations: 0 / 478.4 MB, free: 7.879 MB / 362.7 MB Notification: Performance of Templates: time 0.0102/0.5296, allocations: 3.657 MB / 482 MB, free: 4.234 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)