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.007342/0.007342, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001778/0.001779, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.636/1.636, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06009/0.06009, allocations: 10.74 MB / 280.6 MB, free: 10.41 MB / 238.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.00155/0.001551, allocations: 60.75 kB / 390.8 MB, free: 5.027 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4421/0.4437, allocations: 49.01 MB / 439.8 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.004395/0.4482, allocations: 1.963 MB / 441.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.4502, allocations: 1.11 MB / 442.9 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.4503, allocations: 6.688 kB / 442.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.4514, allocations: 315 kB / 443.2 MB, free: 3.109 MB / 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.0005119/0.4519, allocations: 207.1 kB / 443.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007487/0.4527, allocations: 278.8 kB / 443.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000471/0.4532, allocations: 342.7 kB / 444 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001717/0.4533, allocations: 39.88 kB / 444.1 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.4536, allocations: 143.7 kB / 444.2 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.4538, allocations: 153.5 kB / 444.4 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.4539, allocations: 20.19 kB / 444.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000231/0.4541, allocations: 91.23 kB / 444.5 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.4543, allocations: 89.44 kB / 444.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.4544, allocations: 122.8 kB / 444.7 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.455, allocations: 373.2 kB / 445.1 MB, free: 2.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.455, allocations: 0 / 445.1 MB, free: 2.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4551, allocations: 0 / 445.1 MB, free: 2.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.4551, allocations: 1.625 kB / 445.1 MB, free: 2.285 MB / 318.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.001153/0.4562, allocations: 0.6663 MB / 445.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4563, allocations: 13.27 kB / 445.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.4564, allocations: 36.19 kB / 445.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005616/0.457, allocations: 344.9 kB / 446.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.457, allocations: 13.3 kB / 446.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.953e-05/0.457, allocations: 12.19 kB / 446.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.4574, allocations: 137.8 kB / 446.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.4574, allocations: 1.375 kB / 446.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.278e-05/0.4575, allocations: 2.125 kB / 446.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.4575, allocations: 1.344 kB / 446.3 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.4577, allocations: 53.92 kB / 446.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008782/0.4586, allocations: 467.2 kB / 446.8 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003522/0.4589, allocations: 131 kB / 446.9 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.459, allocations: 49.88 kB / 447 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.4591, allocations: 5.344 kB / 447 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.4594, allocations: 130.4 kB / 447.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.784e-06/0.4594, allocations: 0 / 447.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006073/0.46, allocations: 233.1 kB / 447.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.4601, allocations: 114.3 kB / 447.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006111/0.4607, allocations: 473.5 kB / 447.9 MB, free: 272 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.4607, allocations: 32.83 kB / 447.9 MB, free: 236 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.4609, allocations: 164.9 kB / 448.1 MB, free: 80 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.188e-05/0.4609, allocations: 37.95 kB / 448.1 MB, free: 48 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.747e-05/0.461, allocations: 49.05 kB / 448.2 MB, free: 8 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.4612, allocations: 344.6 kB / 448.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.4613, allocations: 42.52 kB / 448.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.4615, allocations: 126.9 kB / 448.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.4618, allocations: 128.2 kB / 448.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.4618, allocations: 9.125 kB / 448.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003929/0.4622, allocations: 199.8 kB / 449 MB, free: 15.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.4622, allocations: 5.188 kB / 449 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.4622, allocations: 2.031 kB / 449 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.4622, allocations: 2.156 kB / 449 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.4624, allocations: 27.83 kB / 449 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.4624, allocations: 2.188 kB / 449 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.4625, allocations: 20.09 kB / 449.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.4626, allocations: 6.688 kB / 449.1 MB, free: 15.29 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.0002039/0.4628, allocations: 185.7 kB / 449.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.977e-05/0.4628, allocations: 38.12 kB / 449.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.424e-05/0.4629, allocations: 39.39 kB / 449.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.4629, allocations: 6.203 kB / 449.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.463, allocations: 0 / 449.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.463, allocations: 1.031 kB / 449.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003681/0.4633, allocations: 295.8 kB / 449.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4634, allocations: 7.469 kB / 449.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.624e-05/0.4634, allocations: 9.812 kB / 449.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.4634, allocations: 0 / 449.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.4634, allocations: 10.8 kB / 449.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.4634, allocations: 0 / 449.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4634, allocations: 0 / 449.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003759/0.4638, allocations: 214.1 kB / 449.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.4639, allocations: 117.4 kB / 450 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.464, allocations: 5.938 kB / 450 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.4641, allocations: 9.078 kB / 450 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.4642, allocations: 14.27 kB / 450 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.4642, allocations: 5.625 kB / 450 MB, free: 14.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004524/0.4647, allocations: 352.2 kB / 450.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4647, allocations: 0 / 450.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003412/0.465, allocations: 58 kB / 450.4 MB, free: 14.29 MB / 334.1 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.y1,flipFlopSR.y2,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/0.4661, allocations: 439 kB / 450.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003611/0.4665, allocations: 127.4 kB / 451 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4665, allocations: 0 / 451 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.4667, allocations: 56.11 kB / 451 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.4671, allocations: 92.92 kB / 451.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009913/0.4681, allocations: 0.5051 MB / 451.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.4686, allocations: 0.7726 MB / 452.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.4688, allocations: 43.89 kB / 452.4 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.684e-05/0.4688, allocations: 32.92 kB / 452.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4689, allocations: 1.438 kB / 452.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of Templates: time 0.009604/0.4785, allocations: 4.074 MB / 456.5 MB, free: 10.67 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)