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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009954/0.0009954, allocations: 174.9 kB / 16.12 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05724/0.05724, allocations: 10.76 MB / 27.62 MB, free: 1.816 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.4 MB / 236.2 MB, free: 10.19 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 86.31 kB / 287 MB, free: 12.41 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0005445/0.0005448, allocations: 8 kB / 347.6 MB, free: 15.63 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.296, allocations: 50 MB / 397.6 MB, free: 34.61 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1063/0.4023, allocations: 81.77 MB / 479.4 MB, free: 0.7305 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.4027, allocations: 87.95 kB / 479.5 MB, free: 0.6445 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03952/0.4422, allocations: 14.02 MB / 493.5 MB, free: 2.578 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4423, allocations: 0 / 493.5 MB, free: 2.578 MB / 362.8 MB Notification: Performance of Transformations before backend: time 7.704e-05/0.4423, allocations: 15.94 kB / 493.5 MB, free: 2.562 MB / 362.8 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.001665/0.444, allocations: 0.8647 MB / 494.4 MB, free: 1.629 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4441, allocations: 8.031 kB / 494.4 MB, free: 1.621 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002188/0.4443, allocations: 60.19 kB / 494.5 MB, free: 1.562 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.4454, allocations: 0.5114 MB / 495 MB, free: 1.008 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.4454, allocations: 20.38 kB / 495 MB, free: 0.9883 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.4455, allocations: 16.38 kB / 495 MB, free: 0.9727 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.446, allocations: 281.2 kB / 495.3 MB, free: 0.6641 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.446, allocations: 8.125 kB / 495.3 MB, free: 0.6562 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.446, allocations: 7.938 kB / 495.3 MB, free: 0.6484 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.4461, allocations: 4 kB / 495.3 MB, free: 0.6445 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.4464, allocations: 131.9 kB / 495.4 MB, free: 0.5156 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.4477, allocations: 0.7108 MB / 496.1 MB, free: 15.75 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.4482, allocations: 241 kB / 496.4 MB, free: 15.51 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.4484, allocations: 88.81 kB / 496.5 MB, free: 15.42 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.4484, allocations: 0 / 496.5 MB, free: 15.42 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003612/0.4488, allocations: 201.1 kB / 496.7 MB, free: 15.21 MB / 378.8 MB Notification: Performance of pre-optimization done (n=27): time 2.334e-06/0.4488, allocations: 0 / 496.7 MB, free: 15.21 MB / 378.8 MB Notification: Performance of matching and sorting (n=27): time 0.0009283/0.4498, allocations: 440.2 kB / 497.1 MB, free: 14.78 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.872e-05/0.4499, allocations: 140.5 kB / 497.2 MB, free: 14.61 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.451, allocations: 0.7098 MB / 497.9 MB, free: 13.89 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.4511, allocations: 37.7 kB / 498 MB, free: 13.85 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.4513, allocations: 236.6 kB / 498.2 MB, free: 13.61 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.427e-05/0.4513, allocations: 67.16 kB / 498.3 MB, free: 13.55 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.117e-05/0.4514, allocations: 4 kB / 498.3 MB, free: 13.54 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.4516, allocations: 374.8 kB / 498.6 MB, free: 13.17 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.4518, allocations: 76.55 kB / 498.7 MB, free: 13.09 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.4521, allocations: 233.4 kB / 498.9 MB, free: 12.8 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005357/0.4526, allocations: 307.7 kB / 499.2 MB, free: 12.46 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4527, allocations: 0 / 499.2 MB, free: 12.46 MB / 378.8 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007294/0.4534, allocations: 364.8 kB / 499.6 MB, free: 12.09 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.4534, allocations: 4 kB / 499.6 MB, free: 12.09 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.4535, allocations: 4 kB / 499.6 MB, free: 12.09 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.4535, allocations: 4 kB / 499.6 MB, free: 12.08 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.4537, allocations: 43.92 kB / 499.6 MB, free: 12.04 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.4537, allocations: 4 kB / 499.6 MB, free: 12.04 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.4539, allocations: 35.77 kB / 499.7 MB, free: 12 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.454, allocations: 16 kB / 499.7 MB, free: 11.98 MB / 378.8 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 31 ($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],$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition1,and_gate.u[2],booleanConstant2.combiTimeTable.nextTimeEvent,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled,and_gate.u[3],booleanConstant1.combiTimeTable.nextTimeEvent,$PRE.booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,and_gate.u[4],booleanConstant.combiTimeTable.nextTimeEvent,$PRE.booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEventScaled,not_gate_C.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003751/0.4543, allocations: 238.9 kB / 499.9 MB, free: 11.74 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.4544, allocations: 67.2 kB / 500 MB, free: 11.68 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006918/0.4551, allocations: 375.1 kB / 0.4886 GB, free: 11.3 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.4552, allocations: 4 kB / 0.4886 GB, free: 11.3 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4552, allocations: 0 / 0.4886 GB, free: 11.3 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.4552, allocations: 0 / 0.4886 GB, free: 11.3 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005229/0.4557, allocations: 453.1 kB / 0.4891 GB, free: 10.8 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4557, allocations: 0 / 0.4891 GB, free: 10.8 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.346e-05/0.4558, allocations: 23.86 kB / 0.4891 GB, free: 10.78 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4558, allocations: 4 kB / 0.4891 GB, free: 10.78 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.4559, allocations: 11.98 kB / 0.4891 GB, free: 10.77 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4559, allocations: 4 kB / 0.4891 GB, free: 10.76 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4559, allocations: 0 / 0.4891 GB, free: 10.76 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006427/0.4565, allocations: 389.1 kB / 0.4895 GB, free: 10.36 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.4567, allocations: 160.3 kB / 0.4896 GB, free: 10.19 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.332e-05/0.4568, allocations: 15.98 kB / 0.4897 GB, free: 10.17 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.457, allocations: 15.98 kB / 0.4897 GB, free: 10.16 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.457, allocations: 27.95 kB / 0.4897 GB, free: 10.13 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.4571, allocations: 19.98 kB / 0.4897 GB, free: 10.11 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0006812/0.4578, allocations: 0.5065 MB / 0.4902 GB, free: 9.605 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4578, allocations: 0 / 0.4902 GB, free: 9.605 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005795/0.4584, allocations: 115.9 kB / 0.4903 GB, free: 9.492 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,and_gate.u[2],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.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 (30): * Single equations (assignments): 19 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001165/0.4595, allocations: 483.8 kB / 0.4908 GB, free: 9.043 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0005987/0.4601, allocations: 267.7 kB / 0.491 GB, free: 8.781 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4602, allocations: 0 / 0.491 GB, free: 8.781 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.4604, allocations: 127.9 kB / 0.4912 GB, free: 8.656 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/0.4611, allocations: 118.2 kB / 0.4913 GB, free: 8.543 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.4626, allocations: 0.9696 MB / 0.4922 GB, free: 7.551 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004453/0.4631, allocations: 0.8631 MB / 0.4931 GB, free: 6.664 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.4634, allocations: 95.56 kB / 0.4932 GB, free: 6.57 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.4635, allocations: 51.42 kB / 0.4932 GB, free: 6.52 MB / 378.8 MB Notification: Performance of SimCode: time 2.5e-07/0.4635, allocations: 0 / 0.4932 GB, free: 6.52 MB / 378.8 MB Notification: Performance of Templates: time 0.179/0.6425, allocations: 6.558 MB / 0.4996 GB, free: 100.2 MB / 378.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.makefile (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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)