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.001231/0.001231, allocations: 174.9 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05777/0.05777, allocations: 10.66 MB / 23.92 MB, free: 1.375 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.771/1.771, allocations: 205.2 MB / 232.1 MB, free: 12.82 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.0008765/0.0008765, allocations: 86.47 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.585e-05/3.588e-05, allocations: 0 / 340.5 MB, free: 3.625 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3168, allocations: 49.99 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.4298, allocations: 80.76 MB / 471.2 MB, free: 2.871 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/0.4302, allocations: 83.94 kB / 471.3 MB, free: 2.789 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02605/0.4563, allocations: 9.076 MB / 480.4 MB, free: 9.707 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4564, allocations: 4 kB / 480.4 MB, free: 9.703 MB / 362.8 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.4564, allocations: 8 kB / 480.4 MB, free: 9.695 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.0007978/0.4572, allocations: 0.5641 MB / 481 MB, free: 9.074 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4572, allocations: 12.03 kB / 481 MB, free: 9.062 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.486e-05/0.4573, allocations: 35.58 kB / 481 MB, free: 9.027 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.4579, allocations: 351.7 kB / 481.4 MB, free: 8.641 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.458, allocations: 12 kB / 481.4 MB, free: 8.629 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.458, allocations: 11.98 kB / 481.4 MB, free: 8.617 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.4583, allocations: 129.1 kB / 481.5 MB, free: 8.477 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.4583, allocations: 0 / 481.5 MB, free: 8.477 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/0.4583, allocations: 4 kB / 481.5 MB, free: 8.473 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.4583, allocations: 0 / 481.5 MB, free: 8.473 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.4585, allocations: 59.97 kB / 481.6 MB, free: 8.414 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007594/0.4592, allocations: 0.4965 MB / 482.1 MB, free: 7.867 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.4595, allocations: 118.8 kB / 482.2 MB, free: 7.742 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.133e-05/0.4596, allocations: 48.86 kB / 482.2 MB, free: 7.691 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.4596, allocations: 3.984 kB / 482.2 MB, free: 7.688 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.4598, allocations: 127.5 kB / 482.4 MB, free: 7.551 MB / 362.8 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.4598, allocations: 0 / 482.4 MB, free: 7.551 MB / 362.8 MB Notification: Performance of matching and sorting (n=15): time 0.000374/0.4602, allocations: 186.3 kB / 482.5 MB, free: 7.363 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.4603, allocations: 102.8 kB / 482.6 MB, free: 7.238 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005385/0.4608, allocations: 431.5 kB / 483.1 MB, free: 6.812 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.4608, allocations: 29.7 kB / 483.1 MB, free: 6.777 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.461, allocations: 172.3 kB / 483.3 MB, free: 6.602 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.422e-05/0.461, allocations: 39.53 kB / 483.3 MB, free: 6.562 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.937e-06/0.4611, allocations: 0 / 483.3 MB, free: 6.562 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.4612, allocations: 354.7 kB / 483.7 MB, free: 6.207 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.972e-05/0.4613, allocations: 44.58 kB / 483.7 MB, free: 6.16 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.4615, allocations: 132.4 kB / 483.8 MB, free: 6 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.429e-05/0.4616, allocations: 47.98 kB / 483.9 MB, free: 5.953 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4616, allocations: 7.938 kB / 483.9 MB, free: 5.945 MB / 362.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002919/0.4619, allocations: 189.2 kB / 484.1 MB, free: 5.754 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.4619, allocations: 5.406 kB / 484.1 MB, free: 5.75 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4619, allocations: 3.953 kB / 484.1 MB, free: 5.746 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.462, allocations: 4 kB / 484.1 MB, free: 5.742 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.4621, allocations: 31.92 kB / 484.1 MB, free: 5.711 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4621, allocations: 4 kB / 484.1 MB, free: 5.707 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.4622, allocations: 20.05 kB / 484.1 MB, free: 5.688 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.4623, allocations: 12 kB / 484.1 MB, free: 5.676 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 () * 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 9.526e-05/0.4624, allocations: 119.2 kB / 484.3 MB, free: 5.551 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.066e-05/0.4624, allocations: 31.62 kB / 484.3 MB, free: 5.52 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003695/0.4628, allocations: 204.6 kB / 484.5 MB, free: 5.312 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4628, allocations: 3.953 kB / 484.5 MB, free: 5.309 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4628, allocations: 4 kB / 484.5 MB, free: 5.305 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.4628, allocations: 7.984 kB / 484.5 MB, free: 5.297 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.4632, allocations: 325.3 kB / 484.8 MB, free: 4.93 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4632, allocations: 3.984 kB / 484.8 MB, free: 4.926 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-05/0.4632, allocations: 8 kB / 484.8 MB, free: 4.918 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4632, allocations: 3.938 kB / 484.8 MB, free: 4.914 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.4633, allocations: 4 kB / 484.8 MB, free: 4.91 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4633, allocations: 0 / 484.8 MB, free: 4.91 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4633, allocations: 3.953 kB / 484.8 MB, free: 4.906 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.4636, allocations: 231.7 kB / 485.1 MB, free: 4.664 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.4638, allocations: 128.7 kB / 485.2 MB, free: 4.52 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.4638, allocations: 4 kB / 485.2 MB, free: 4.516 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.669e-05/0.4639, allocations: 12.11 kB / 485.2 MB, free: 4.504 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.643e-05/0.464, allocations: 19.94 kB / 485.2 MB, free: 4.484 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.464, allocations: 11.98 kB / 485.2 MB, free: 4.473 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003866/0.4644, allocations: 334.1 kB / 485.6 MB, free: 4.148 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4644, allocations: 0 / 485.6 MB, free: 4.148 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003272/0.4647, allocations: 71.88 kB / 485.6 MB, free: 4.078 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) * 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.0009148/0.4657, allocations: 412.9 kB / 486 MB, free: 3.738 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0002834/0.466, allocations: 139.7 kB / 486.2 MB, free: 3.602 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.466, allocations: 0 / 486.2 MB, free: 3.602 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.4661, allocations: 60 kB / 486.2 MB, free: 3.543 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003912/0.4665, allocations: 71.75 kB / 486.3 MB, free: 3.473 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007021/0.4672, allocations: 410.7 kB / 486.7 MB, free: 3.047 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.4676, allocations: 0.7872 MB / 487.5 MB, free: 2.23 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.4677, allocations: 54.03 kB / 487.6 MB, free: 2.176 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.066e-05/0.4678, allocations: 31.38 kB / 487.6 MB, free: 2.148 MB / 362.8 MB Notification: Performance of SimCode: time 4.21e-07/0.4678, allocations: 0 / 487.6 MB, free: 2.148 MB / 362.8 MB Notification: Performance of Templates: time 0.007995/0.4758, allocations: 4.072 MB / 491.7 MB, free: 14.09 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)