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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001535/0.001535, allocations: 108.7 kB / 15.99 MB, free: 6.352 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.001617/0.001618, allocations: 199.7 kB / 16.91 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06488/0.06488, allocations: 11.2 MB / 301.9 MB, free: 4.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002817/0.002817, allocations: 59.91 kB / 364.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2083, allocations: 51.98 MB / 416.7 MB, free: 22.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.002651/0.211, allocations: 2.009 MB / 418.8 MB, free: 20.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.2124, allocations: 1.169 MB / 419.9 MB, free: 19.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.71e-05/0.2125, allocations: 7.938 kB / 419.9 MB, free: 19.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000714/0.2132, allocations: 305.7 kB / 420.2 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003638/0.2136, allocations: 194.8 kB / 420.4 MB, free: 18.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006185/0.2142, allocations: 276.4 kB / 420.7 MB, free: 18.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.2145, allocations: 340.8 kB / 421 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.2146, allocations: 47.92 kB / 421.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.2148, allocations: 143.4 kB / 421.2 MB, free: 18.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.2149, allocations: 151.4 kB / 421.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.2149, allocations: 23.92 kB / 421.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.2151, allocations: 87.95 kB / 421.5 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.914e-05/0.2152, allocations: 95.66 kB / 421.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.137e-05/0.2153, allocations: 119.3 kB / 421.7 MB, free: 17.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002244/0.2155, allocations: 285.4 kB / 422 MB, free: 17.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2155, allocations: 4 kB / 422 MB, free: 17.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2155, allocations: 1 kB / 422 MB, free: 17.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.2155, allocations: 0 / 422 MB, free: 17.46 MB / 302.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.0007576/0.2163, allocations: 0.6645 MB / 422.6 MB, free: 16.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2163, allocations: 15.89 kB / 422.6 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.059e-05/0.2164, allocations: 36.47 kB / 422.7 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.2167, allocations: 334.4 kB / 423 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.2167, allocations: 12.36 kB / 423 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.2168, allocations: 16.06 kB / 423 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.217, allocations: 138.6 kB / 423.2 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.217, allocations: 0 / 423.2 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.2171, allocations: 7.984 kB / 423.2 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2171, allocations: 0 / 423.2 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.2172, allocations: 59.97 kB / 423.2 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000501/0.2177, allocations: 476.3 kB / 423.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.218, allocations: 134.8 kB / 423.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.665e-05/0.2181, allocations: 40.84 kB / 423.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.2181, allocations: 7.984 kB / 423.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.2183, allocations: 123.3 kB / 424 MB, free: 15.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.933e-06/0.2183, allocations: 0 / 424 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004517/0.2188, allocations: 240.9 kB / 424.2 MB, free: 15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.2188, allocations: 106.8 kB / 424.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.2192, allocations: 469.6 kB / 424.8 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.2192, allocations: 37.7 kB / 424.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.355e-05/0.2193, allocations: 168.3 kB / 425 MB, free: 14.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.2193, allocations: 43.45 kB / 425 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.012e-05/0.2194, allocations: 45.7 kB / 425.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.165e-05/0.2194, allocations: 346.8 kB / 425.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.997e-05/0.2195, allocations: 39.98 kB / 425.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.2197, allocations: 126 kB / 425.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.2198, allocations: 137.9 kB / 425.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2198, allocations: 0 / 425.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002754/0.2201, allocations: 197.1 kB / 425.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.2201, allocations: 4 kB / 425.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2202, allocations: 0 / 425.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2202, allocations: 4 kB / 425.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.2203, allocations: 32.08 kB / 425.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2203, allocations: 4 kB / 425.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.2204, allocations: 11.91 kB / 426 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.2204, allocations: 8 kB / 426 MB, free: 13.14 MB / 302.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.0001162/0.2205, allocations: 180.1 kB / 426.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/0.2206, allocations: 35.56 kB / 426.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.784e-05/0.2207, allocations: 42.97 kB / 426.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2207, allocations: 0 / 426.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2207, allocations: 4 kB / 426.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2207, allocations: 0 / 426.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.2209, allocations: 297.4 kB / 426.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-06/0.2209, allocations: 0 / 426.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.302e-05/0.2209, allocations: 15.92 kB / 426.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2209, allocations: 3.938 kB / 426.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2209, allocations: 4 kB / 426.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2209, allocations: 4 kB / 426.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2209, allocations: 0 / 426.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.2212, allocations: 228.4 kB / 426.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.2213, allocations: 108.7 kB / 426.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.2213, allocations: 8 kB / 426.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.012e-05/0.2214, allocations: 7.984 kB / 426.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.2215, allocations: 20.02 kB / 426.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.2215, allocations: 4 kB / 426.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002507/0.2218, allocations: 351.1 kB / 427.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2218, allocations: 4 kB / 427.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.2221, allocations: 48 kB / 427.3 MB, free: 11.71 MB / 302.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.001428/0.2235, allocations: 438.1 kB / 427.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003104/0.2238, allocations: 123.9 kB / 427.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2238, allocations: 4 kB / 427.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.2239, allocations: 64.22 kB / 427.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004192/0.2244, allocations: 80.78 kB / 428 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006781/0.2251, allocations: 0.6223 MB / 428.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001696/0.2252, allocations: 0.7753 MB / 429.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.059e-05/0.2253, allocations: 27.44 kB / 429.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2253, allocations: 0 / 429.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of Templates: time 0.005541/0.2309, allocations: 4.408 MB / 433.8 MB, free: 5.312 MB / 302.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)