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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.007499/0.007498, allocations: 170 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05534/0.05534, allocations: 10.74 MB / 26.59 MB, free: 2.234 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.4 MB / 235.2 MB, free: 184 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00098/0.00098, allocations: 94.98 kB / 285.9 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004693/0.0004697, allocations: 12 kB / 346.4 MB, free: 5.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1131, allocations: 50 MB / 396.4 MB, free: 3.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3347/0.4479, allocations: 80.85 MB / 477.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.4482, allocations: 86.58 kB / 477.3 MB, free: 15.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02247/0.4707, allocations: 9.103 MB / 486.4 MB, free: 7.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4707, allocations: 4 kB / 486.4 MB, free: 7.836 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.749e-05/0.4708, allocations: 4 kB / 486.4 MB, free: 7.832 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001147/0.4719, allocations: 0.6427 MB / 487.1 MB, free: 7.152 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.472, allocations: 8.031 kB / 487.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.4722, allocations: 35.61 kB / 487.1 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006959/0.4729, allocations: 342.2 kB / 487.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.4729, allocations: 8 kB / 487.5 MB, free: 6.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.4729, allocations: 11.31 kB / 487.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.4733, allocations: 142 kB / 487.6 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.4733, allocations: 0 / 487.6 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.4733, allocations: 0 / 487.6 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.4733, allocations: 4 kB / 487.6 MB, free: 6.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.4735, allocations: 65.39 kB / 487.7 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008442/0.4744, allocations: 0.4962 MB / 488.2 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003144/0.4747, allocations: 136.9 kB / 488.3 MB, free: 6.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.4747, allocations: 3.938 kB / 488.3 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.475, allocations: 126.6 kB / 488.4 MB, free: 5.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.475, allocations: 0 / 488.4 MB, free: 5.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006118/0.4756, allocations: 243 kB / 488.7 MB, free: 5.711 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.4757, allocations: 106.8 kB / 488.8 MB, free: 5.582 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005284/0.4762, allocations: 436.8 kB / 489.2 MB, free: 5.238 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.4763, allocations: 35.75 kB / 489.3 MB, free: 5.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.4764, allocations: 168.5 kB / 489.4 MB, free: 5.082 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.4764, allocations: 38.78 kB / 489.5 MB, free: 5.051 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-06/0.4764, allocations: 7.188 kB / 489.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.472e-05/0.4765, allocations: 340.9 kB / 489.8 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.584e-05/0.4766, allocations: 46.22 kB / 489.8 MB, free: 4.684 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.4768, allocations: 130.9 kB / 490 MB, free: 4.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.4769, allocations: 65.39 kB / 490 MB, free: 4.508 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4769, allocations: 0 / 490 MB, free: 4.508 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003243/0.4772, allocations: 192 kB / 490.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4773, allocations: 4 kB / 490.2 MB, free: 4.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.4773, allocations: 4 kB / 490.2 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.4773, allocations: 7.953 kB / 490.2 MB, free: 4.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.4774, allocations: 30.89 kB / 490.3 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.4774, allocations: 4 kB / 490.3 MB, free: 4.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.4776, allocations: 15.28 kB / 490.3 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.4776, allocations: 11.98 kB / 490.3 MB, free: 4.281 MB / 346.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 () * Number of clocked 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.0001551/0.4778, allocations: 173.3 kB / 490.5 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.938e-05/0.4778, allocations: 35.66 kB / 490.5 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003733/0.4782, allocations: 227.2 kB / 490.7 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.4782, allocations: 3.953 kB / 490.7 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/0.4782, allocations: 0 / 490.7 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.4782, allocations: 0 / 490.7 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002405/0.4785, allocations: 317.6 kB / 491 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.4785, allocations: 4.125 kB / 491 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.457e-05/0.4785, allocations: 19.92 kB / 491.1 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.4785, allocations: 0 / 491.1 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/0.4786, allocations: 7.188 kB / 491.1 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4786, allocations: 0 / 491.1 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4786, allocations: 7.953 kB / 491.1 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/0.4789, allocations: 231.2 kB / 491.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.4791, allocations: 126.2 kB / 491.4 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.4791, allocations: 15.3 kB / 491.4 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.602e-05/0.4792, allocations: 7.938 kB / 491.4 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.569e-05/0.4793, allocations: 19.91 kB / 491.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.4793, allocations: 11.95 kB / 491.5 MB, free: 3.191 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003498/0.4797, allocations: 346.7 kB / 491.8 MB, free: 2.938 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4797, allocations: 0 / 491.8 MB, free: 2.938 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003489/0.48, allocations: 70.42 kB / 491.9 MB, free: 2.875 MB / 346.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) * Number of clocked states: 0 () * 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.0009707/0.481, allocations: 442.3 kB / 492.3 MB, free: 2.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003261/0.4813, allocations: 137.2 kB / 492.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4813, allocations: 0 / 492.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.4815, allocations: 80.62 kB / 492.5 MB, free: 2.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.4819, allocations: 69.91 kB / 492.6 MB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008682/0.4828, allocations: 0.57 MB / 493.2 MB, free: 1.727 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.483, allocations: 0.7924 MB / 494 MB, free: 0.918 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.4832, allocations: 50.25 kB / 494 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.441e-05/0.4833, allocations: 34.67 kB / 494 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4833, allocations: 0 / 494 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of Templates: time 0.008806/0.4921, allocations: 4.05 MB / 498.1 MB, free: 12.81 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)