Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 77.86 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002541/0.002541, allocations: 162.4 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.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.06266/0.06266, allocations: 8.618 MB / 268.4 MB, free: 8.516 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations") [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 67.89 kB / 396.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.129, allocations: 56.05 MB / 452.1 MB, free: 15.77 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.004704/0.1337, allocations: 2.24 MB / 454.4 MB, free: 13.51 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00355/0.1372, allocations: 1.532 MB / 455.9 MB, free: 11.97 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003955/0.1376, allocations: 11.88 kB / 455.9 MB, free: 11.96 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001669/0.1393, allocations: 0.4987 MB / 456.4 MB, free: 11.46 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.1405, allocations: 372 kB / 456.8 MB, free: 11.1 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.1418, allocations: 401.3 kB / 457.2 MB, free: 10.71 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.1428, allocations: 0.5843 MB / 457.7 MB, free: 10.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.1431, allocations: 65.98 kB / 457.8 MB, free: 10.05 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005568/0.1437, allocations: 251.1 kB / 458.1 MB, free: 9.809 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005876/0.1443, allocations: 270.9 kB / 458.3 MB, free: 9.543 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.1444, allocations: 28 kB / 458.3 MB, free: 9.516 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006269/0.145, allocations: 187.8 kB / 458.5 MB, free: 9.332 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002713/0.1453, allocations: 159.5 kB / 458.7 MB, free: 9.176 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003047/0.1456, allocations: 174.8 kB / 458.9 MB, free: 9.004 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.1468, allocations: 0.6185 MB / 459.5 MB, free: 8.383 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1468, allocations: 0 / 459.5 MB, free: 8.383 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1468, allocations: 0 / 459.5 MB, free: 8.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.28e-05/0.1468, allocations: 4 kB / 459.5 MB, free: 8.379 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.00222/0.149, allocations: 0.8714 MB / 460.3 MB, free: 7.457 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.1491, allocations: 8.031 kB / 460.4 MB, free: 7.449 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002045/0.1493, allocations: 68.45 kB / 460.4 MB, free: 7.383 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000896/0.1502, allocations: 413.1 kB / 460.8 MB, free: 6.953 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.1502, allocations: 16.36 kB / 460.8 MB, free: 6.938 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.1503, allocations: 24.12 kB / 460.9 MB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004629/0.1507, allocations: 209.7 kB / 461.1 MB, free: 6.703 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1507, allocations: 7.875 kB / 461.1 MB, free: 6.695 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.1508, allocations: 8 kB / 461.1 MB, free: 6.688 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.159e-05/0.1508, allocations: 4 kB / 461.1 MB, free: 6.684 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.1511, allocations: 131.9 kB / 461.2 MB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001271/0.1524, allocations: 0.566 MB / 461.8 MB, free: 5.957 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.1529, allocations: 225.2 kB / 462 MB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.1532, allocations: 84.75 kB / 462.1 MB, free: 5.645 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.1532, allocations: 4 kB / 462.1 MB, free: 5.641 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004094/0.1536, allocations: 185.6 kB / 462.3 MB, free: 5.449 MB / 430.1 MB Notification: Performance of pre-optimization done (n=24): time 2.464e-06/0.1536, allocations: 0 / 462.3 MB, free: 5.449 MB / 430.1 MB Notification: Performance of matching and sorting (n=24): time 0.001073/0.1547, allocations: 428.9 kB / 462.7 MB, free: 5.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.1548, allocations: 55.41 kB / 462.7 MB, free: 4.957 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.1559, allocations: 0.7295 MB / 463.5 MB, free: 4.219 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.296e-05/0.1559, allocations: 37.7 kB / 463.5 MB, free: 4.176 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002676/0.1562, allocations: 252.5 kB / 463.8 MB, free: 3.922 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.993e-05/0.1563, allocations: 63.56 kB / 463.8 MB, free: 3.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001564/0.1564, allocations: 61.69 kB / 463.9 MB, free: 3.793 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002562/0.1567, allocations: 366.8 kB / 464.2 MB, free: 3.426 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.1569, allocations: 76.23 kB / 464.3 MB, free: 3.348 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003559/0.1572, allocations: 270.1 kB / 464.6 MB, free: 3.023 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005631/0.1578, allocations: 281.1 kB / 464.9 MB, free: 2.715 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1578, allocations: 0 / 464.9 MB, free: 2.715 MB / 430.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007599/0.1586, allocations: 341 kB / 465.2 MB, free: 2.375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.1586, allocations: 7.984 kB / 465.2 MB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1586, allocations: 4 kB / 465.2 MB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.1586, allocations: 4 kB / 465.2 MB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.1588, allocations: 40.17 kB / 465.2 MB, free: 2.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.1588, allocations: 7.938 kB / 465.2 MB, free: 2.312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002389/0.1591, allocations: 31.81 kB / 465.3 MB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.1591, allocations: 12.12 kB / 465.3 MB, free: 2.27 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(flow=false fixed = true ) \"output vector\" type: Boolean [1] or_gate.y[1]:DISCRETE(flow=false fixed = true ) \"output vector\" type: Boolean [1] not_gate.y[1]:DISCRETE(flow=false fixed = true ) \"output vector\" type: Boolean [1] and_gate.y[1]:DISCRETE(flow=false fixed = true ) \"output vector\" type: Boolean [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.xor_gate.y[1],xor_gate.y[1],$PRE.or_gate.y[1],or_gate.y[1],$PRE.not_gate.y[1],not_gate.y[1],$PRE.and_gate.y[1],and_gate.y[1],$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,or_gate.u[2],booleanConstant2.combiTimeTable.nextTimeEventScaled,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEventScaled,$PRE.booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEvent,and_gate.u[3],not_gate_C.y[1],booleanConstant.combiTimeTable.nextTimeEventScaled,$PRE.booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEvent,and_gate.u[4]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 1 * 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.0003951/0.1595, allocations: 254.6 kB / 465.5 MB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1596, allocations: 59.56 kB / 465.6 MB, free: 1.953 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007489/0.1604, allocations: 368.8 kB / 466 MB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.1604, allocations: 4 kB / 466 MB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1604, allocations: 0 / 466 MB, free: 1.586 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1604, allocations: 3.984 kB / 466 MB, free: 1.582 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.1609, allocations: 317 kB / 466.3 MB, free: 1.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.1609, allocations: 3.938 kB / 466.3 MB, free: 1.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.533e-05/0.1609, allocations: 19.92 kB / 466.3 MB, free: 1.219 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.1609, allocations: 4 kB / 466.3 MB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.411e-05/0.161, allocations: 8 kB / 466.3 MB, free: 1.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.161, allocations: 4 kB / 466.3 MB, free: 1.203 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.161, allocations: 0 / 466.3 MB, free: 1.203 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007143/0.1617, allocations: 380.8 kB / 466.7 MB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1618, allocations: 63.48 kB / 466.7 MB, free: 0.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.687e-05/0.1619, allocations: 11.98 kB / 466.8 MB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.162, allocations: 19.92 kB / 466.8 MB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.037e-05/0.1621, allocations: 19.97 kB / 466.8 MB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.1621, allocations: 15.98 kB / 466.8 MB, free: 0.6836 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000741/0.1629, allocations: 0.5301 MB / 467.3 MB, free: 160 kB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1629, allocations: 0 / 467.3 MB, free: 160 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004768/0.1633, allocations: 99.81 kB / 467.4 MB, free: 60 kB / 430.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: 18 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,and_gate.u[3],and_gate.u[4],and_gate.y[1],booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEventScaled,not_gate.y[1],or_gate.u[2],or_gate.y[1],xor_gate.y[1],not_gate_C.y[1]) * Number of discrete states: 6 (booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 16 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.001899/0.1652, allocations: 488.3 kB / 467.9 MB, free: 15.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006333/0.1659, allocations: 247.7 kB / 468.2 MB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.1659, allocations: 0 / 468.2 MB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002744/0.1661, allocations: 107.9 kB / 468.3 MB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.1668, allocations: 131.8 kB / 468.4 MB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.1685, allocations: 0.8819 MB / 469.3 MB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.1689, allocations: 268 kB / 469.5 MB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002653/0.1691, allocations: 83.5 kB / 469.6 MB, free: 14.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1692, allocations: 40.48 kB / 469.7 MB, free: 13.97 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1692, allocations: 4 kB / 469.7 MB, free: 13.96 MB / 446.1 MB Notification: Performance of Templates: time 0.01569/0.1849, allocations: 6.674 MB / 476.3 MB, free: 7.387 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.9001341530820355] Failed to read output from testmodel.py, exit status != 0: 0.195541849010624 0.40854803599999995 0.258656262 Calling exit ...