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.001114/0.001114, allocations: 170.2 kB / 16.11 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05796/0.05796, allocations: 10.76 MB / 27.62 MB, free: 1.27 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.599/1.599, allocations: 205.4 MB / 236.2 MB, free: 10.14 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008211/0.0008211, allocations: 89.83 kB / 287 MB, free: 12.38 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003982, allocations: 12 kB / 347.6 MB, free: 15.6 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2214, allocations: 49.98 MB / 397.6 MB, free: 34.61 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1015/0.323, allocations: 80.92 MB / 478.5 MB, free: 1.574 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.3233, allocations: 87.95 kB / 478.6 MB, free: 1.488 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02543/0.3487, allocations: 9.146 MB / 487.8 MB, free: 8.332 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3488, allocations: 192 / 487.8 MB, free: 8.332 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.462e-05/0.3488, allocations: 11.94 kB / 487.8 MB, free: 8.32 MB / 362.8 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.001097/0.3499, allocations: 0.6305 MB / 488.4 MB, free: 7.625 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.35, allocations: 16.03 kB / 488.4 MB, free: 7.609 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.3501, allocations: 28.56 kB / 488.5 MB, free: 7.582 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006757/0.3508, allocations: 370.3 kB / 488.8 MB, free: 7.184 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.3509, allocations: 4.375 kB / 488.8 MB, free: 7.18 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.3509, allocations: 12.38 kB / 488.8 MB, free: 7.168 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.3512, allocations: 132.7 kB / 489 MB, free: 7.023 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.3512, allocations: 192 / 489 MB, free: 7.023 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.3513, allocations: 11.94 kB / 489 MB, free: 7.012 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3513, allocations: 4 kB / 489 MB, free: 7.008 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.3514, allocations: 63.95 kB / 489 MB, free: 6.945 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009005/0.3524, allocations: 0.4886 MB / 489.5 MB, free: 6.406 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.3527, allocations: 146.8 kB / 489.7 MB, free: 6.254 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.3528, allocations: 44.84 kB / 489.7 MB, free: 6.207 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.3528, allocations: 0 / 489.7 MB, free: 6.207 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.3531, allocations: 135.3 kB / 489.9 MB, free: 6.062 MB / 362.8 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.3531, allocations: 3.938 kB / 489.9 MB, free: 6.059 MB / 362.8 MB Notification: Performance of matching and sorting (n=15): time 0.0005821/0.3537, allocations: 241.2 kB / 490.1 MB, free: 5.816 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.3538, allocations: 102.8 kB / 490.2 MB, free: 5.691 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006407/0.3544, allocations: 469.6 kB / 490.7 MB, free: 5.223 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3545, allocations: 29.7 kB / 490.7 MB, free: 5.188 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.3546, allocations: 168.3 kB / 490.8 MB, free: 5.016 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.3547, allocations: 47.47 kB / 490.9 MB, free: 4.969 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.12e-05/0.3547, allocations: 4 kB / 490.9 MB, free: 4.965 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3549, allocations: 350.7 kB / 491.2 MB, free: 4.613 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.355, allocations: 43.98 kB / 491.3 MB, free: 4.57 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.3552, allocations: 133.4 kB / 491.4 MB, free: 4.406 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.3555, allocations: 133.9 kB / 491.5 MB, free: 4.254 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3555, allocations: 4 kB / 491.5 MB, free: 4.25 MB / 362.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004458/0.356, allocations: 205 kB / 491.7 MB, free: 4.043 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.356, allocations: 8 kB / 491.8 MB, free: 4.035 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/0.356, allocations: 0 / 491.8 MB, free: 4.035 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.3561, allocations: 4 kB / 491.8 MB, free: 4.031 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.3562, allocations: 27.86 kB / 491.8 MB, free: 4.004 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.3562, allocations: 4 kB / 491.8 MB, free: 4 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.3564, allocations: 24.14 kB / 491.8 MB, free: 3.977 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.3564, allocations: 4 kB / 491.8 MB, free: 3.973 MB / 362.8 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.0002442/0.3567, allocations: 180.6 kB / 492 MB, free: 3.789 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.78e-05/0.3567, allocations: 35.53 kB / 492 MB, free: 3.754 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004809/0.3572, allocations: 211.3 kB / 492.2 MB, free: 3.539 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.3573, allocations: 3.938 kB / 492.2 MB, free: 3.535 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3573, allocations: 4 kB / 492.2 MB, free: 3.531 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3573, allocations: 7.984 kB / 492.3 MB, free: 3.523 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004449/0.3577, allocations: 321.3 kB / 492.6 MB, free: 3.16 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.3578, allocations: 0 / 492.6 MB, free: 3.16 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.563e-05/0.3578, allocations: 15.94 kB / 492.6 MB, free: 3.145 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3578, allocations: 0 / 492.6 MB, free: 3.145 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.3579, allocations: 7.984 kB / 492.6 MB, free: 3.137 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.3579, allocations: 11.86 kB / 492.6 MB, free: 3.125 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3579, allocations: 0 / 492.6 MB, free: 3.125 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004528/0.3583, allocations: 228.6 kB / 492.8 MB, free: 2.883 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.3585, allocations: 128.8 kB / 492.9 MB, free: 2.738 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.3586, allocations: 12 kB / 493 MB, free: 2.727 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001488/0.3587, allocations: 19.92 kB / 493 MB, free: 2.707 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.023e-05/0.3588, allocations: 7.984 kB / 493 MB, free: 2.699 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.3589, allocations: 8 kB / 493 MB, free: 2.691 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0004979/0.3594, allocations: 347.1 kB / 493.3 MB, free: 2.355 MB / 362.8 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3594, allocations: 4 kB / 493.3 MB, free: 2.352 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004149/0.3598, allocations: 71.88 kB / 493.4 MB, free: 2.281 MB / 362.8 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.001181/0.361, allocations: 453.9 kB / 493.9 MB, free: 1.863 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.3614, allocations: 139.8 kB / 494 MB, free: 1.727 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3614, allocations: 0 / 494 MB, free: 1.727 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.3616, allocations: 76.22 kB / 494.1 MB, free: 1.652 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.3621, allocations: 62.27 kB / 494.1 MB, free: 1.59 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.3633, allocations: 0.5738 MB / 494.7 MB, free: 0.9883 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.3639, allocations: 0.7794 MB / 495.5 MB, free: 188 kB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.3641, allocations: 50.27 kB / 495.5 MB, free: 136 kB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.764e-05/0.3642, allocations: 35.36 kB / 495.6 MB, free: 104 kB / 362.8 MB Notification: Performance of SimCode: time 2.31e-07/0.3642, allocations: 3.938 kB / 495.6 MB, free: 100 kB / 362.8 MB Notification: Performance of Templates: time 0.0102/0.3744, allocations: 4.096 MB / 499.7 MB, free: 12 MB / 378.8 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)