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.001081/0.001081, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001035/0.001035, allocations: 194.3 kB / 16.14 MB, free: 6.699 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.617/1.617, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0544/0.0544, allocations: 10.73 MB / 280.1 MB, free: 10.72 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.00132/0.00132, allocations: 59.91 kB / 339.9 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1194, allocations: 49.02 MB / 388.9 MB, free: 6.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.004289/0.1237, allocations: 2.01 MB / 390.9 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.1261, allocations: 1.1 MB / 392 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.1264, allocations: 4 kB / 392 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.1275, allocations: 311.3 kB / 392.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006164/0.1281, allocations: 195.4 kB / 392.5 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008636/0.129, allocations: 231.7 kB / 392.7 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005505/0.1296, allocations: 347.1 kB / 393 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001596/0.1297, allocations: 40.34 kB / 393.1 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000287/0.13, allocations: 127.4 kB / 393.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.1303, allocations: 143.4 kB / 393.4 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.1304, allocations: 8 kB / 393.4 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002555/0.1306, allocations: 79.94 kB / 393.4 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001405/0.1308, allocations: 83.67 kB / 393.5 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001783/0.131, allocations: 111.2 kB / 393.6 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000662/0.1316, allocations: 351.1 kB / 394 MB, free: 1.578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1317, allocations: 8 kB / 394 MB, free: 1.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1317, allocations: 0 / 394 MB, free: 1.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.1317, allocations: 0 / 394 MB, free: 1.57 MB / 286.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.001515/0.1332, allocations: 0.6721 MB / 394.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1333, allocations: 12.03 kB / 394.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.1334, allocations: 40.47 kB / 394.7 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005724/0.134, allocations: 338.3 kB / 395 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.134, allocations: 4.375 kB / 395 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.157e-05/0.1341, allocations: 16.12 kB / 395.1 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.1344, allocations: 131 kB / 395.2 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1344, allocations: 0 / 395.2 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.382e-05/0.1345, allocations: 8 kB / 395.2 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1345, allocations: 0 / 395.2 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.1346, allocations: 51.97 kB / 395.2 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000755/0.1354, allocations: 480.3 kB / 395.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.1357, allocations: 138.7 kB / 395.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.1359, allocations: 48.84 kB / 395.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.1359, allocations: 7.984 kB / 395.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.1362, allocations: 115.3 kB / 396 MB, free: 15.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.1362, allocations: 0 / 396 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005413/0.1368, allocations: 233.1 kB / 396.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.1369, allocations: 118.7 kB / 396.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005225/0.1374, allocations: 469.7 kB / 396.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.1374, allocations: 29.7 kB / 396.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1376, allocations: 168.3 kB / 397 MB, free: 14.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.1376, allocations: 43.53 kB / 397.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.694e-05/0.1377, allocations: 41.7 kB / 397.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1378, allocations: 342.8 kB / 397.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.1379, allocations: 43.97 kB / 397.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.1381, allocations: 121.4 kB / 397.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.1383, allocations: 145.9 kB / 397.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1383, allocations: 0 / 397.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003648/0.1387, allocations: 193 kB / 397.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1387, allocations: 16.09 kB / 397.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1388, allocations: 0 / 397.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.1388, allocations: 4 kB / 397.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1389, allocations: 31.92 kB / 398 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.1389, allocations: 0 / 398 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.1391, allocations: 19.83 kB / 398 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.1391, allocations: 12 kB / 398 MB, free: 13.24 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.0001792/0.1393, allocations: 172 kB / 398.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.1393, allocations: 39.56 kB / 398.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.896e-05/0.1394, allocations: 34.98 kB / 398.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.1394, allocations: 4 kB / 398.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1394, allocations: 0 / 398.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1394, allocations: 0 / 398.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.1397, allocations: 293.5 kB / 398.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1397, allocations: 3.984 kB / 398.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.042e-05/0.1398, allocations: 15.94 kB / 398.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.83e-05/0.1398, allocations: 0 / 398.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.1398, allocations: 7.875 kB / 398.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1399, allocations: 8.125 kB / 398.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1399, allocations: 4 kB / 398.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.1403, allocations: 216.6 kB / 398.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.605e-05/0.1404, allocations: 108.6 kB / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.1404, allocations: 8 kB / 398.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.349e-05/0.1405, allocations: 11.98 kB / 398.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.397e-05/0.1406, allocations: 11.98 kB / 398.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.1406, allocations: 11.98 kB / 398.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003969/0.141, allocations: 343.1 kB / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1411, allocations: 0 / 399.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003533/0.1414, allocations: 63.89 kB / 399.3 MB, free: 11.81 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.001091/0.1425, allocations: 431.9 kB / 399.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003684/0.1429, allocations: 128 kB / 399.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1429, allocations: 0 / 399.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.1431, allocations: 71.83 kB / 399.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004668/0.1435, allocations: 69.97 kB / 400 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009801/0.1445, allocations: 0.5609 MB / 400.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1449, allocations: 0.7872 MB / 401.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.1451, allocations: 38.27 kB / 401.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.734e-05/0.1452, allocations: 27.44 kB / 401.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1452, allocations: 0 / 401.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Templates: time 0.008995/0.1542, allocations: 3.869 MB / 405.3 MB, free: 5.895 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)