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.001156/0.00116, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06455/0.06455, allocations: 10.76 MB / 27.49 MB, free: 1.863 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.312/1.312, allocations: 205.1 MB / 235.7 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 105 kB / 285.5 MB, free: 12.82 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009778/0.000978, allocations: 51.92 kB / 345.3 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2456, allocations: 49.01 MB / 394.3 MB, free: 35.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003187/0.2489, allocations: 2.017 MB / 396.3 MB, free: 33.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.2504, allocations: 1.109 MB / 397.4 MB, free: 32.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.31e-05/0.2505, allocations: 3.938 kB / 397.4 MB, free: 32.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007024/0.2512, allocations: 299.4 kB / 397.7 MB, free: 32.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002992/0.2515, allocations: 191.4 kB / 397.9 MB, free: 31.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.252, allocations: 253 kB / 398.2 MB, free: 31.67 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002734/0.2523, allocations: 339.1 kB / 398.5 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.2524, allocations: 44.39 kB / 398.5 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.2526, allocations: 131.4 kB / 398.7 MB, free: 31.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.2527, allocations: 135.4 kB / 398.8 MB, free: 31.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.997e-05/0.2528, allocations: 8 kB / 398.8 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.2529, allocations: 79.88 kB / 398.9 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.953e-05/0.253, allocations: 83.72 kB / 399 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.542e-05/0.2531, allocations: 115.2 kB / 399.1 MB, free: 30.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.2534, allocations: 356.9 kB / 399.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2534, allocations: 0 / 399.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2534, allocations: 0 / 399.4 MB, free: 30.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2535, allocations: 4 kB / 399.4 MB, free: 30.4 MB / 298.7 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.0008382/0.2543, allocations: 0.6688 MB / 400.1 MB, free: 29.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2543, allocations: 8.031 kB / 400.1 MB, free: 29.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.536e-05/0.2544, allocations: 32.56 kB / 400.1 MB, free: 29.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.2548, allocations: 338.3 kB / 400.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.2548, allocations: 8.375 kB / 400.5 MB, free: 29.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.2549, allocations: 12.12 kB / 400.5 MB, free: 29.24 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.2551, allocations: 144 kB / 400.6 MB, free: 29.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2552, allocations: 0 / 400.6 MB, free: 29.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.2552, allocations: 0 / 400.6 MB, free: 29.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.2552, allocations: 0 / 400.6 MB, free: 29.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001365/0.2553, allocations: 59.95 kB / 400.7 MB, free: 29.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005439/0.2559, allocations: 476.4 kB / 401.1 MB, free: 28.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002775/0.2562, allocations: 126.8 kB / 401.3 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.304e-05/0.2563, allocations: 52.77 kB / 401.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.2563, allocations: 4 kB / 401.3 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.2565, allocations: 115.4 kB / 401.4 MB, free: 28.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.2565, allocations: 0 / 401.4 MB, free: 28.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004653/0.257, allocations: 233.2 kB / 401.7 MB, free: 27.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.2571, allocations: 118.6 kB / 401.8 MB, free: 27.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.2575, allocations: 473.6 kB / 402.2 MB, free: 27.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2575, allocations: 33.7 kB / 402.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.978e-05/0.2576, allocations: 168.3 kB / 402.4 MB, free: 27.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.2576, allocations: 43.53 kB / 402.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.2577, allocations: 45.64 kB / 402.5 MB, free: 27.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.662e-05/0.2578, allocations: 346.8 kB / 402.9 MB, free: 26.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.343e-05/0.2579, allocations: 43.98 kB / 402.9 MB, free: 26.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.258, allocations: 125.4 kB / 403 MB, free: 26.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001871/0.2582, allocations: 141.9 kB / 403.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2582, allocations: 0 / 403.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002841/0.2585, allocations: 197 kB / 403.4 MB, free: 26.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.2585, allocations: 4 kB / 403.4 MB, free: 26.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.341e-06/0.2585, allocations: 4 kB / 403.4 MB, free: 26.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.2586, allocations: 4.156 kB / 403.4 MB, free: 26.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.2587, allocations: 27.92 kB / 403.4 MB, free: 26.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2587, allocations: 4 kB / 403.4 MB, free: 26.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.71e-05/0.2588, allocations: 15.98 kB / 403.4 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.2588, allocations: 4 kB / 403.4 MB, free: 26.07 MB / 298.7 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.0001365/0.259, allocations: 184.6 kB / 403.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.842e-05/0.259, allocations: 35.47 kB / 403.6 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.4e-05/0.2591, allocations: 38.97 kB / 403.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2591, allocations: 4 kB / 403.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2591, allocations: 0 / 403.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2591, allocations: 3.984 kB / 403.7 MB, free: 25.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.2593, allocations: 297.5 kB / 404 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2593, allocations: 0 / 404 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.995e-05/0.2593, allocations: 11.94 kB / 404 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2594, allocations: 128 / 404 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.2594, allocations: 11.98 kB / 404 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2594, allocations: 0 / 404 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2594, allocations: 0 / 404 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005824/0.26, allocations: 0.8731 MB / 404.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.26, allocations: 116.7 kB / 405 MB, free: 24.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.2601, allocations: 4 kB / 405 MB, free: 24.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.823e-05/0.2602, allocations: 7.984 kB / 405 MB, free: 24.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.306e-05/0.2602, allocations: 11.98 kB / 405 MB, free: 24.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.2603, allocations: 12 kB / 405 MB, free: 24.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002836/0.2605, allocations: 355.1 kB / 405.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2606, allocations: 0 / 405.4 MB, free: 23.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000358/0.2609, allocations: 55.88 kB / 405.4 MB, free: 23.94 MB / 298.7 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.0008592/0.2618, allocations: 431.9 kB / 405.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002669/0.2621, allocations: 128.1 kB / 406 MB, free: 23.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2621, allocations: 0 / 406 MB, free: 23.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.2622, allocations: 59.92 kB / 406 MB, free: 23.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000372/0.2626, allocations: 78.67 kB / 406.1 MB, free: 23.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.2633, allocations: 0.7235 MB / 406.8 MB, free: 22.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.2635, allocations: 0.7794 MB / 407.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.2636, allocations: 46.19 kB / 407.7 MB, free: 21.67 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.337e-05/0.2637, allocations: 31.44 kB / 407.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2637, allocations: 4 kB / 407.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of Templates: time 0.006827/0.2705, allocations: 3.948 MB / 411.6 MB, free: 17.69 MB / 298.7 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)