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.001078/0.001078, allocations: 112.6 kB / 16.37 MB, free: 6 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.001061/0.001061, allocations: 196 kB / 17.31 MB, free: 5.613 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.302/1.302, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05581/0.05581, allocations: 10.73 MB / 281.3 MB, free: 1.32 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.001386/0.001386, allocations: 68.23 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2338, allocations: 49 MB / 391 MB, free: 50 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003096/0.2369, allocations: 1.958 MB / 393 MB, free: 48.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.2385, allocations: 1.119 MB / 394.1 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.2386, allocations: 2.094 kB / 394.1 MB, free: 47.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008225/0.2395, allocations: 314.7 kB / 394.4 MB, free: 47.8 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.0004401/0.2399, allocations: 219.3 kB / 394.6 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000587/0.2405, allocations: 256.4 kB / 394.9 MB, free: 47.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003502/0.2409, allocations: 353.9 kB / 395.2 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.241, allocations: 39.39 kB / 395.2 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.2412, allocations: 146.6 kB / 395.4 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.2414, allocations: 146.1 kB / 395.5 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.43e-05/0.2414, allocations: 17.09 kB / 395.5 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001868/0.2416, allocations: 90.19 kB / 395.6 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.2418, allocations: 90.91 kB / 395.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.2419, allocations: 133.3 kB / 395.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.2423, allocations: 360.8 kB / 396.2 MB, free: 46.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2423, allocations: 1.359 kB / 396.2 MB, free: 46.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2423, allocations: 3.938 kB / 396.2 MB, free: 46.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.2424, allocations: 1.281 kB / 396.2 MB, free: 46.98 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.0009166/0.2433, allocations: 0.6607 MB / 396.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2433, allocations: 14.22 kB / 396.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.438e-05/0.2434, allocations: 36.59 kB / 396.9 MB, free: 46.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.2438, allocations: 353.8 kB / 397.3 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2438, allocations: 9.312 kB / 397.3 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.2439, allocations: 14.92 kB / 397.3 MB, free: 46.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.2441, allocations: 135.7 kB / 397.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.2441, allocations: 0 / 397.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.2442, allocations: 2.562 kB / 397.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2442, allocations: 2.375 kB / 397.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.2443, allocations: 56.7 kB / 397.5 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.245, allocations: 471.8 kB / 397.9 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003/0.2453, allocations: 131.4 kB / 398.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.2454, allocations: 49.05 kB / 398.1 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.2454, allocations: 2.344 kB / 398.1 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.2457, allocations: 122 kB / 398.2 MB, free: 45.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.2457, allocations: 0 / 398.2 MB, free: 45.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005029/0.2462, allocations: 232.6 kB / 398.5 MB, free: 45.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.2463, allocations: 115.6 kB / 398.6 MB, free: 45.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005048/0.2468, allocations: 468.2 kB / 399 MB, free: 45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2468, allocations: 32.27 kB / 399.1 MB, free: 44.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.2469, allocations: 169.7 kB / 399.2 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.247, allocations: 41.91 kB / 399.3 MB, free: 44.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.247, allocations: 41.92 kB / 399.3 MB, free: 44.76 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.426e-05/0.2471, allocations: 342.1 kB / 399.6 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.81e-05/0.2472, allocations: 49.28 kB / 399.7 MB, free: 44.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.2473, allocations: 123.9 kB / 399.8 MB, free: 44.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.2475, allocations: 145.1 kB / 400 MB, free: 44.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.2475, allocations: 0 / 400 MB, free: 44.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000305/0.2478, allocations: 196.6 kB / 400.1 MB, free: 44.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2479, allocations: 9.375 kB / 400.2 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2479, allocations: 2.25 kB / 400.2 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.2479, allocations: 2.812 kB / 400.2 MB, free: 44.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.248, allocations: 30.48 kB / 400.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.248, allocations: 2.906 kB / 400.2 MB, free: 44.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.2481, allocations: 15.27 kB / 400.2 MB, free: 44.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2482, allocations: 7.219 kB / 400.2 MB, free: 44.06 MB / 318.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.0001361/0.2483, allocations: 188.8 kB / 400.4 MB, free: 43.9 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.2484, allocations: 37.91 kB / 400.4 MB, free: 43.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.695e-05/0.2484, allocations: 40.27 kB / 400.5 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2484, allocations: 1.469 kB / 400.5 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.2485, allocations: 1.25 kB / 400.5 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2485, allocations: 0 / 400.5 MB, free: 43.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.2487, allocations: 292.8 kB / 400.8 MB, free: 43.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2487, allocations: 0 / 400.8 MB, free: 43.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.2487, allocations: 18.58 kB / 400.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2487, allocations: 4.875 kB / 400.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.2488, allocations: 6.75 kB / 400.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2488, allocations: 4 kB / 400.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2488, allocations: 1.438 kB / 400.8 MB, free: 43.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.2491, allocations: 220 kB / 401 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.839e-05/0.2492, allocations: 105.5 kB / 401.1 MB, free: 43.29 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.2492, allocations: 6.156 kB / 401.1 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.511e-05/0.2493, allocations: 9.484 kB / 401.1 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.2493, allocations: 16.64 kB / 401.1 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.2494, allocations: 6.188 kB / 401.2 MB, free: 43.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003141/0.2497, allocations: 349 kB / 401.5 MB, free: 43.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2497, allocations: 0 / 401.5 MB, free: 43.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000335/0.25, allocations: 58.45 kB / 401.6 MB, free: 43.05 MB / 318.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.0009721/0.251, allocations: 437.6 kB / 402 MB, free: 42.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.2513, allocations: 119.8 kB / 402.1 MB, free: 42.8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2513, allocations: 0 / 402.1 MB, free: 42.8 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.2515, allocations: 63.56 kB / 402.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.2519, allocations: 78.73 kB / 402.2 MB, free: 42.74 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007504/0.2526, allocations: 0.5018 MB / 402.7 MB, free: 42.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001915/0.2528, allocations: 0.7809 MB / 403.5 MB, free: 41.67 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001265/0.253, allocations: 52.17 kB / 403.6 MB, free: 41.65 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/0.253, allocations: 24.91 kB / 403.6 MB, free: 41.64 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.253, allocations: 0 / 403.6 MB, free: 41.64 MB / 318.1 MB Notification: Performance of Templates: time 0.007532/0.2606, allocations: 4.051 MB / 407.6 MB, free: 39.6 MB / 318.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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)