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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002131/0.002131, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06395/0.06395, allocations: 11.34 MB / 317.6 MB, free: 13.85 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/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=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.89 kB / 443 MB, free: 6.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.138, allocations: 54.89 MB / 497.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003897/0.1419, allocations: 1.976 MB / 499.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002361/0.1442, allocations: 1.228 MB / 0.4894 GB, free: 12.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.1444, allocations: 3.938 kB / 0.4894 GB, free: 12.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009547/0.1453, allocations: 321.7 kB / 0.4897 GB, free: 11.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004878/0.1458, allocations: 219.3 kB / 0.4899 GB, free: 11.72 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007669/0.1466, allocations: 305.3 kB / 0.4902 GB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004185/0.147, allocations: 339.1 kB / 0.4905 GB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1471, allocations: 32.58 kB / 0.4905 GB, free: 11.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002118/0.1474, allocations: 147.4 kB / 0.4907 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002104/0.1476, allocations: 159.5 kB / 0.4908 GB, free: 10.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.003e-05/0.1476, allocations: 16 kB / 0.4909 GB, free: 10.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002285/0.1478, allocations: 107.8 kB / 0.491 GB, free: 10.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.148, allocations: 91.73 kB / 0.491 GB, free: 10.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.1481, allocations: 127.2 kB / 0.4912 GB, free: 10.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004908/0.1486, allocations: 370.4 kB / 0.4915 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1486, allocations: 4 kB / 0.4915 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1486, allocations: 0 / 0.4915 GB, free: 10.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.1486, allocations: 3.938 kB / 0.4915 GB, free: 10.05 MB / 366.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.00111/0.1497, allocations: 0.601 MB / 0.4921 GB, free: 9.406 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1498, allocations: 8.031 kB / 0.4921 GB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.58e-05/0.1498, allocations: 40.69 kB / 0.4922 GB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.1503, allocations: 276.8 kB / 0.4924 GB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.1503, allocations: 12.38 kB / 0.4924 GB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.1503, allocations: 16.12 kB / 0.4925 GB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.1507, allocations: 130.4 kB / 0.4926 GB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1507, allocations: 0 / 0.4926 GB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1507, allocations: 0 / 0.4926 GB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.1507, allocations: 4 kB / 0.4926 GB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.1509, allocations: 55.97 kB / 0.4926 GB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000753/0.1516, allocations: 447.5 kB / 0.4931 GB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.1519, allocations: 126.7 kB / 0.4932 GB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.1521, allocations: 52.83 kB / 0.4932 GB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.1521, allocations: 0 / 0.4932 GB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.1524, allocations: 115.3 kB / 0.4933 GB, free: 8.043 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.1524, allocations: 4 kB / 0.4933 GB, free: 8.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.000565/0.1529, allocations: 239.9 kB / 0.4936 GB, free: 7.801 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/0.153, allocations: 110.8 kB / 0.4937 GB, free: 7.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.1536, allocations: 477.6 kB / 0.4941 GB, free: 7.191 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.1536, allocations: 25.7 kB / 0.4942 GB, free: 7.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.1537, allocations: 172.4 kB / 0.4943 GB, free: 6.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.787e-05/0.1538, allocations: 39.69 kB / 0.4944 GB, free: 6.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.739e-05/0.1539, allocations: 41.7 kB / 0.4944 GB, free: 6.898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.154, allocations: 350.8 kB / 0.4947 GB, free: 6.547 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.1541, allocations: 35.98 kB / 0.4948 GB, free: 6.512 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.1543, allocations: 130.9 kB / 0.4949 GB, free: 6.352 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.1546, allocations: 137.9 kB / 0.495 GB, free: 6.195 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1546, allocations: 0 / 0.495 GB, free: 6.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003597/0.1549, allocations: 193.2 kB / 0.4952 GB, free: 6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1549, allocations: 4 kB / 0.4952 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.155, allocations: 12.14 kB / 0.4952 GB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.977e-05/0.155, allocations: 4.125 kB / 0.4952 GB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.1551, allocations: 27.94 kB / 0.4953 GB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1551, allocations: 7.984 kB / 0.4953 GB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1552, allocations: 11.94 kB / 0.4953 GB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.1553, allocations: 8 kB / 0.4953 GB, free: 5.926 MB / 366.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.0002072/0.1555, allocations: 176.4 kB / 0.4955 GB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.975e-05/0.1555, allocations: 43.7 kB / 0.4955 GB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004326/0.156, allocations: 212.6 kB / 0.4957 GB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.156, allocations: 0 / 0.4957 GB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.156, allocations: 0 / 0.4957 GB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.156, allocations: 0 / 0.4957 GB, free: 5.488 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.1563, allocations: 272.5 kB / 0.496 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1563, allocations: 0 / 0.496 GB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.808e-05/0.1563, allocations: 11.94 kB / 0.496 GB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1563, allocations: 0 / 0.496 GB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.1563, allocations: 8 kB / 0.496 GB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1563, allocations: 4 kB / 0.496 GB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1563, allocations: 0 / 0.496 GB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.1567, allocations: 227.7 kB / 0.4962 GB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.459e-05/0.1568, allocations: 39.75 kB / 0.4962 GB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/0.1568, allocations: 4 kB / 0.4962 GB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.842e-05/0.1569, allocations: 15.92 kB / 0.4963 GB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.157, allocations: 15.97 kB / 0.4963 GB, free: 4.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.157, allocations: 8 kB / 0.4963 GB, free: 4.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003844/0.1574, allocations: 347.1 kB / 0.4966 GB, free: 4.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1574, allocations: 0 / 0.4966 GB, free: 4.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003135/0.1577, allocations: 59.88 kB / 0.4967 GB, free: 4.441 MB / 366.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,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * 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.001585/0.1593, allocations: 429.8 kB / 0.4971 GB, free: 4.172 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.1596, allocations: 124 kB / 0.4972 GB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1596, allocations: 0 / 0.4972 GB, free: 4.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.1598, allocations: 51.97 kB / 0.4972 GB, free: 4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.1602, allocations: 87.92 kB / 0.4973 GB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009097/0.1611, allocations: 0.5115 MB / 0.4978 GB, free: 3.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.1616, allocations: 0.7831 MB / 0.4986 GB, free: 2.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001299/0.1617, allocations: 46.27 kB / 0.4986 GB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.078e-05/0.1618, allocations: 27.42 kB / 0.4987 GB, free: 2.5 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1618, allocations: 0 / 0.4987 GB, free: 2.5 MB / 366.1 MB Notification: Performance of Templates: time 0.009836/0.1716, allocations: 4.153 MB / 0.5027 GB, free: 14.39 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.048056867904961] Failed to read output from testmodel.py, exit status != 0: 0.1800712998956442 0.196216242 0.044341030000000003 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f7576d297b0>