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.0009774/0.0009777, allocations: 169.6 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05735/0.05735, allocations: 10.66 MB / 18.73 MB, free: 1.316 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.667/1.667, allocations: 205.3 MB / 226.9 MB, free: 7.922 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.0008003/0.0008004, allocations: 82.5 kB / 277.3 MB, free: 5.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.226e-05/2.227e-05, allocations: 4 kB / 333.5 MB, free: 28.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 50 MB / 383.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4463, allocations: 80.4 MB / 463.9 MB, free: 4.375 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.4467, allocations: 88.14 kB / 464 MB, free: 4.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02429/0.471, allocations: 9.002 MB / 473 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.471, allocations: 0 / 473 MB, free: 12.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.471, allocations: 4 kB / 473 MB, free: 12.88 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.0007786/0.4718, allocations: 0.567 MB / 473.6 MB, free: 12.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.4719, allocations: 16.02 kB / 473.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.618e-05/0.472, allocations: 39.48 kB / 473.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005413/0.4726, allocations: 349.7 kB / 474 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.4726, allocations: 4 kB / 474 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.874e-05/0.4726, allocations: 11.98 kB / 474 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001336/0.4728, allocations: 51.05 kB / 474.1 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.473, allocations: 117.8 kB / 474.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.473, allocations: 0 / 474.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.473, allocations: 0 / 474.2 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.473, allocations: 8 kB / 474.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006388/0.4737, allocations: 473.3 kB / 474.6 MB, free: 11.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.4739, allocations: 122.8 kB / 474.8 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.932e-05/0.4739, allocations: 43.28 kB / 474.8 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.474, allocations: 4 kB / 474.8 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.4741, allocations: 104.7 kB / 474.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.4742, allocations: 0 / 474.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003877/0.4746, allocations: 181.1 kB / 475.1 MB, free: 10.91 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.4746, allocations: 118.7 kB / 475.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.4751, allocations: 407.9 kB / 475.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.4751, allocations: 28.77 kB / 475.6 MB, free: 10.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.4752, allocations: 168 kB / 475.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.4753, allocations: 38.23 kB / 475.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-06/0.4753, allocations: 3.938 kB / 475.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4754, allocations: 341.1 kB / 476.2 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.685e-05/0.4755, allocations: 38.67 kB / 476.2 MB, free: 9.922 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.4756, allocations: 119.9 kB / 476.3 MB, free: 9.793 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.795e-05/0.4757, allocations: 53.47 kB / 476.4 MB, free: 9.758 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4758, allocations: 7.938 kB / 476.4 MB, free: 9.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000313/0.4761, allocations: 162.7 kB / 476.5 MB, free: 9.613 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.4761, allocations: 8 kB / 476.5 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.4761, allocations: 0 / 476.5 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.4761, allocations: 4 kB / 476.6 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.4763, allocations: 31.88 kB / 476.6 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.4763, allocations: 3.938 kB / 476.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.4764, allocations: 20.06 kB / 476.6 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.4765, allocations: 12.08 kB / 476.6 MB, free: 9.539 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 () * 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.000101/0.4766, allocations: 115.2 kB / 476.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.743e-05/0.4766, allocations: 35.56 kB / 476.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003657/0.477, allocations: 199.5 kB / 477 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.477, allocations: 7.938 kB / 477 MB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.477, allocations: 7.953 kB / 477 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.477, allocations: 3.984 kB / 477 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002565/0.4773, allocations: 294.2 kB / 477.3 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4773, allocations: 0 / 477.3 MB, free: 8.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.798e-05/0.4773, allocations: 11.98 kB / 477.3 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.4774, allocations: 0 / 477.3 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.4774, allocations: 4.125 kB / 477.3 MB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4774, allocations: 4 kB / 477.3 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4774, allocations: 0 / 477.3 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.4777, allocations: 228.5 kB / 477.5 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.4778, allocations: 122.8 kB / 477.6 MB, free: 8.574 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.892e-05/0.4779, allocations: 6.812 kB / 477.6 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-05/0.478, allocations: 8.031 kB / 477.6 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.478, allocations: 23.03 kB / 477.7 MB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.604e-05/0.4781, allocations: 7.984 kB / 477.7 MB, free: 8.535 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003077/0.4784, allocations: 322.6 kB / 478 MB, free: 8.301 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4784, allocations: 0 / 478 MB, free: 8.301 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000328/0.4787, allocations: 66.73 kB / 478.1 MB, free: 8.238 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) * 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.0008362/0.4796, allocations: 377.5 kB / 478.4 MB, free: 7.879 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002378/0.4798, allocations: 122.9 kB / 478.5 MB, free: 7.793 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4798, allocations: 320 / 478.5 MB, free: 7.793 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.48, allocations: 72.08 kB / 478.6 MB, free: 7.738 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/0.4804, allocations: 69.84 kB / 478.7 MB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000665/0.481, allocations: 406.3 kB / 479.1 MB, free: 7.324 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.4814, allocations: 0.7926 MB / 479.9 MB, free: 6.516 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001383/0.4815, allocations: 54.02 kB / 479.9 MB, free: 6.465 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.993e-05/0.4816, allocations: 26.62 kB / 479.9 MB, free: 6.441 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4816, allocations: 4 kB / 480 MB, free: 6.438 MB / 346.7 MB Notification: Performance of Templates: time 0.008268/0.4899, allocations: 3.733 MB / 483.7 MB, free: 2.719 MB / 346.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)