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.001131/0.001131, allocations: 114.5 kB / 16.42 MB, free: 6.496 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.00117/0.00117, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.292/1.292, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06011/0.06011, allocations: 10.73 MB / 281.3 MB, free: 1.312 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.001489/0.001489, allocations: 68.98 kB / 391.5 MB, free: 45.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06412/0.06562, allocations: 49.04 MB / 440.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002574/0.06822, allocations: 1.939 MB / 442.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.06958, allocations: 1.127 MB / 443.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.794e-05/0.06969, allocations: 7.938 kB / 443.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006801/0.07038, allocations: 310 kB / 443.9 MB, free: 456 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.0003503/0.07074, allocations: 211.3 kB / 444.1 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.07128, allocations: 266.9 kB / 444.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003335/0.07162, allocations: 331.1 kB / 444.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.07175, allocations: 48.33 kB / 444.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.07192, allocations: 139.5 kB / 444.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.0721, allocations: 151.4 kB / 445 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.596e-05/0.07214, allocations: 16 kB / 445.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.07233, allocations: 91.89 kB / 445.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.07245, allocations: 91.72 kB / 445.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.07257, allocations: 127.2 kB / 445.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004072/0.07299, allocations: 370.4 kB / 445.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.073, allocations: 4 kB / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.07301, allocations: 0 / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.07302, allocations: 0 / 445.7 MB, free: 14.63 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.0008761/0.0739, allocations: 0.6763 MB / 446.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.07394, allocations: 15.83 kB / 446.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.07403, allocations: 36.7 kB / 446.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.07445, allocations: 342.6 kB / 446.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.07448, allocations: 12.38 kB / 446.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.07451, allocations: 12.12 kB / 446.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.07478, allocations: 132 kB / 446.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.0748, allocations: 0 / 446.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.07482, allocations: 7.984 kB / 446.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.07483, allocations: 4 kB / 447 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.07499, allocations: 55.95 kB / 447 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006098/0.07561, allocations: 476.5 kB / 447.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.07593, allocations: 126.8 kB / 447.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.07605, allocations: 48.84 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.07608, allocations: 4 kB / 447.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.07633, allocations: 123.2 kB / 447.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.07634, allocations: 0 / 447.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005064/0.07685, allocations: 229.4 kB / 448 MB, free: 12.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.07692, allocations: 110.8 kB / 448.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004946/0.07742, allocations: 485.5 kB / 448.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.07746, allocations: 29.7 kB / 448.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.07758, allocations: 164.4 kB / 448.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.653e-05/0.07762, allocations: 35.73 kB / 448.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.07769, allocations: 41.7 kB / 448.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.07783, allocations: 346.8 kB / 449.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.07795, allocations: 47.98 kB / 449.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.07813, allocations: 129.3 kB / 449.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002281/0.07837, allocations: 133.9 kB / 449.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.07838, allocations: 0 / 449.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003587/0.07875, allocations: 201.2 kB / 449.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.07877, allocations: 7.938 kB / 449.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.07878, allocations: 8.156 kB / 449.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.0788, allocations: 0 / 449.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.07893, allocations: 27.92 kB / 449.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.07895, allocations: 4 kB / 449.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.07907, allocations: 19.89 kB / 449.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.07909, allocations: 7.984 kB / 449.8 MB, free: 10.28 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.00016/0.07926, allocations: 184.2 kB / 449.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.07932, allocations: 35.7 kB / 450 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.062e-05/0.07941, allocations: 42.97 kB / 450 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.07942, allocations: 3.938 kB / 450 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.07943, allocations: 0 / 450 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.842e-05/0.07951, allocations: 112.8 kB / 450.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.894e-05/0.07957, allocations: 11.98 kB / 450.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-05/0.07967, allocations: 4 kB / 450.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.634e-05/0.07972, allocations: 11.98 kB / 450.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003865/0.08011, allocations: 248.9 kB / 450.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004055/0.08053, allocations: 375.4 kB / 450.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001223/0.08067, allocations: 60.81 kB / 450.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003577/0.08103, allocations: 351.1 kB / 451.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of Backend: time 3.11e-07/0.08104, allocations: 0 / 451.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.08244, allocations: 0.5163 MB / 451.7 MB, free: 8.426 MB / 334.1 MB Notification: Performance of SimCode: time 0.0009932/0.08344, allocations: 0.9634 MB / 452.6 MB, free: 7.41 MB / 334.1 MB Notification: Performance of Templates: time 0.008034/0.09149, allocations: 4.166 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)