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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 110.7 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 189.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06008/0.06008, allocations: 10.73 MB / 281.3 MB, free: 1.301 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 66.06 kB / 391.5 MB, free: 45.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07024/0.0718, allocations: 49.02 MB / 440.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002732/0.07456, allocations: 1.955 MB / 442.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.07604, allocations: 1.1 MB / 443.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.07622, allocations: 7.938 kB / 443.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000707/0.07697, allocations: 322.8 kB / 443.9 MB, free: 440 kB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000403/0.07738, allocations: 211.3 kB / 444.1 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005967/0.07799, allocations: 266.2 kB / 444.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003925/0.07839, allocations: 343.1 kB / 444.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.07853, allocations: 52.31 kB / 444.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.07875, allocations: 151.4 kB / 444.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.07894, allocations: 147.5 kB / 445.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.147e-05/0.07899, allocations: 16 kB / 445.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000198/0.0792, allocations: 95.88 kB / 445.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.07931, allocations: 87.73 kB / 445.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.07944, allocations: 127.2 kB / 445.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.07984, allocations: 362.7 kB / 445.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.07985, allocations: 0 / 445.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.07986, allocations: 0 / 445.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.07988, allocations: 0 / 445.7 MB, free: 14.61 MB / 334.1 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.0009602/0.08084, allocations: 0.6766 MB / 446.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.08088, allocations: 11.89 kB / 446.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.134e-05/0.08097, allocations: 32.56 kB / 446.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.08141, allocations: 334.4 kB / 446.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.08144, allocations: 4.375 kB / 446.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.08147, allocations: 20.11 kB / 446.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.08175, allocations: 142.1 kB / 446.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.08177, allocations: 0 / 446.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.08179, allocations: 4 kB / 446.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.08181, allocations: 4 kB / 446.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.08196, allocations: 55.95 kB / 447 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006628/0.08263, allocations: 476.4 kB / 447.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003128/0.08296, allocations: 122.8 kB / 447.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.08307, allocations: 52.83 kB / 447.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.0831, allocations: 3.938 kB / 447.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.08334, allocations: 118.9 kB / 447.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.664e-06/0.08335, allocations: 0 / 447.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004915/0.08385, allocations: 237.2 kB / 448 MB, free: 12.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.08391, allocations: 106.8 kB / 448.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004995/0.08441, allocations: 481.5 kB / 448.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.889e-05/0.08445, allocations: 29.7 kB / 448.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.08457, allocations: 168.3 kB / 448.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.741e-05/0.08462, allocations: 39.53 kB / 448.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/0.08469, allocations: 45.7 kB / 448.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.08481, allocations: 346.8 kB / 449.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.08492, allocations: 39.98 kB / 449.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.08508, allocations: 125.4 kB / 449.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.08531, allocations: 137.9 kB / 449.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.08532, allocations: 4 kB / 449.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003316/0.08565, allocations: 189.1 kB / 449.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.08568, allocations: 11.88 kB / 449.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.08569, allocations: 4 kB / 449.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.08571, allocations: 3.984 kB / 449.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.08583, allocations: 27.94 kB / 449.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.08585, allocations: 7.984 kB / 449.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.08596, allocations: 20.09 kB / 449.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.08598, allocations: 4.125 kB / 449.7 MB, free: 10.27 MB / 334.1 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 (flipFlopSR.y1,$PRE.flipFlopSR.y1,flipFlopSR.y2,$PRE.flipFlopSR.y2,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001567/0.08615, allocations: 192 kB / 449.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/0.0862, allocations: 35.47 kB / 450 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.965e-05/0.08626, allocations: 34.98 kB / 450 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.08628, allocations: 3.984 kB / 450 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.08629, allocations: 0 / 450 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.632e-05/0.08637, allocations: 104.8 kB / 450.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.617e-05/0.08642, allocations: 11.98 kB / 450.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.08652, allocations: 8 kB / 450.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.08658, allocations: 11.98 kB / 450.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003673/0.08695, allocations: 244.9 kB / 450.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003842/0.08734, allocations: 377.5 kB / 450.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001193/0.08747, allocations: 63.97 kB / 450.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003337/0.08782, allocations: 347.1 kB / 451.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of Backend: time 4.71e-07/0.08782, allocations: 0 / 451.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.08918, allocations: 0.5253 MB / 451.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of SimCode: time 0.0009819/0.09017, allocations: 0.9604 MB / 452.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of Templates: time 0.007743/0.09793, allocations: 4.159 MB / 456.8 MB, free: 3.246 MB / 334.1 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)