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.0009934/0.0009934, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.001147/0.001147, allocations: 173 kB / 23.5 MB, free: 1.055 MB / 18.57 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/1, allocations: 177.1 MB / 203.8 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.05193/0.05193, allocations: 8.61 MB / 268.9 MB, free: 4.984 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 340.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.534e-05/2.687e-05, allocations: 4.984 kB / 340.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002354/0.002381, allocations: 2.322 MB / 343.2 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.004065, allocations: 1.57 MB / 344.8 MB, free: 4.789 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.004209, allocations: 7.938 kB / 344.8 MB, free: 4.781 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007696/0.004978, allocations: 0.4984 MB / 345.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004343/0.005412, allocations: 378.5 kB / 345.7 MB, free: 3.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005493/0.005962, allocations: 391 kB / 346 MB, free: 3.527 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.006314, allocations: 0.5959 MB / 346.6 MB, free: 2.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.006469, allocations: 65.98 kB / 346.7 MB, free: 2.863 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.006693, allocations: 323.1 kB / 347 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.006863, allocations: 239.3 kB / 347.3 MB, free: 2.312 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.006896, allocations: 28 kB / 347.3 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.007107, allocations: 191.6 kB / 347.5 MB, free: 2.098 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.007212, allocations: 163.4 kB / 347.6 MB, free: 1.938 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.939e-05/0.007302, allocations: 127.5 kB / 347.8 MB, free: 1.812 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.007693, allocations: 474.1 kB / 348.2 MB, free: 1.348 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.007697, allocations: 0 / 348.2 MB, free: 1.348 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.007698, allocations: 0 / 348.2 MB, free: 1.348 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.007704, allocations: 4 kB / 348.2 MB, free: 1.344 MB / 266.7 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.0007974/0.008502, allocations: 0.9752 MB / 349.2 MB, free: 320 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.008541, allocations: 8.031 kB / 349.2 MB, free: 312 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.485e-05/0.008636, allocations: 76.52 kB / 349.3 MB, free: 236 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/0.009098, allocations: 416 kB / 349.7 MB, free: 15.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.009126, allocations: 16.36 kB / 349.7 MB, free: 15.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.332e-05/0.00915, allocations: 12.38 kB / 349.7 MB, free: 15.76 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.00941, allocations: 157.8 kB / 349.9 MB, free: 15.6 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.009419, allocations: 3.938 kB / 349.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.009439, allocations: 11.98 kB / 349.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.009455, allocations: 4 kB / 349.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.009572, allocations: 63.95 kB / 349.9 MB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006807/0.01025, allocations: 0.6163 MB / 350.6 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.01048, allocations: 131.4 kB / 350.7 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.176e-05/0.01055, allocations: 47.7 kB / 350.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.586e-05/0.01056, allocations: 4 kB / 350.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.01076, allocations: 153.6 kB / 350.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.755e-06/0.01076, allocations: 0 / 350.9 MB, free: 14.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004281/0.01119, allocations: 295.5 kB / 351.2 MB, free: 14.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.01123, allocations: 59.39 kB / 351.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004781/0.01171, allocations: 0.5963 MB / 351.8 MB, free: 13.53 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.01173, allocations: 41.69 kB / 351.9 MB, free: 13.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.0119, allocations: 311.3 kB / 352.2 MB, free: 13.17 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.908e-05/0.01195, allocations: 67.47 kB / 352.2 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/0.01201, allocations: 67.34 kB / 352.3 MB, free: 13.03 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.01217, allocations: 0.5508 MB / 352.9 MB, free: 12.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.148e-05/0.01223, allocations: 36.2 kB / 352.9 MB, free: 12.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.01238, allocations: 254 kB / 353.1 MB, free: 12.11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.01258, allocations: 204.3 kB / 353.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01259, allocations: 0 / 353.3 MB, free: 11.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0002835/0.01287, allocations: 261.1 kB / 353.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.01289, allocations: 7.938 kB / 353.6 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.0129, allocations: 4 kB / 353.6 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.01291, allocations: 4 kB / 353.6 MB, free: 11.58 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.01302, allocations: 39.92 kB / 353.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.01303, allocations: 4 kB / 353.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.077e-05/0.01312, allocations: 31.83 kB / 353.7 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.01314, allocations: 12 kB / 353.7 MB, free: 11.5 MB / 282.7 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.0001823/0.01333, allocations: 205.7 kB / 353.9 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.145e-05/0.01339, allocations: 75.55 kB / 354 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003552/0.01374, allocations: 277.5 kB / 354.2 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.01375, allocations: 0 / 354.2 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.01376, allocations: 4 kB / 354.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.01376, allocations: 4 kB / 354.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002833/0.01404, allocations: 332.3 kB / 354.6 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.01405, allocations: 0 / 354.6 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.135e-05/0.01409, allocations: 19.98 kB / 354.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.01409, allocations: 0 / 354.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.01411, allocations: 11.94 kB / 354.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.01411, allocations: 0 / 354.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.01411, allocations: 0 / 354.6 MB, free: 10.54 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.01442, allocations: 324.1 kB / 354.9 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.137e-05/0.01447, allocations: 59.55 kB / 355 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.01451, allocations: 15.94 kB / 355 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.738e-05/0.01458, allocations: 11.98 kB / 355 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.01464, allocations: 19.97 kB / 355 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.01465, allocations: 15.98 kB / 355 MB, free: 10.08 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002907/0.01494, allocations: 398.7 kB / 355.4 MB, free: 9.691 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01494, allocations: 4 kB / 355.4 MB, free: 9.688 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002697/0.01521, allocations: 99.77 kB / 355.5 MB, free: 9.59 MB / 282.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: 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.0008884/0.0161, allocations: 454.2 kB / 356 MB, free: 9.277 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000268/0.01637, allocations: 155.9 kB / 356.1 MB, free: 9.121 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.01637, allocations: 4.062 kB / 356.1 MB, free: 9.117 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.01647, allocations: 91.58 kB / 356.2 MB, free: 9.023 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.01683, allocations: 129.7 kB / 356.4 MB, free: 8.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008139/0.01765, allocations: 0.7425 MB / 357.1 MB, free: 8.133 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.031e-05/0.01773, allocations: 129.2 kB / 357.2 MB, free: 7.984 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001262/0.01785, allocations: 75.5 kB / 357.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.232e-05/0.01793, allocations: 44.48 kB / 357.3 MB, free: 7.867 MB / 282.7 MB Notification: Performance of SimCode: time 8.52e-07/0.01793, allocations: 0 / 357.3 MB, free: 7.867 MB / 282.7 MB Notification: Performance of Templates: time 0.009023/0.02695, allocations: 6.722 MB / 364.1 MB, free: 1.25 MB / 282.7 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=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8876768900081515]