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.001107/0.001107, allocations: 174.5 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05741/0.05741, allocations: 10.66 MB / 23.92 MB, free: 1.375 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.868/1.868, allocations: 205.2 MB / 232.1 MB, free: 12.78 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.0009097/0.0009098, allocations: 97.12 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.318e-05/3.335e-05, allocations: 4 kB / 340.5 MB, free: 3.617 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3197, allocations: 49.99 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.4385, allocations: 81.62 MB / 472.1 MB, free: 2.02 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.4389, allocations: 83.95 kB / 472.2 MB, free: 1.938 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03833/0.4772, allocations: 13.92 MB / 486.1 MB, free: 3.977 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4773, allocations: 3.938 kB / 486.1 MB, free: 3.973 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.852e-05/0.4773, allocations: 12 kB / 486.1 MB, free: 3.961 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.001116/0.4784, allocations: 0.7581 MB / 486.9 MB, free: 3.137 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.4785, allocations: 8.031 kB / 486.9 MB, free: 3.129 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.4786, allocations: 63.3 kB / 486.9 MB, free: 3.066 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009842/0.4796, allocations: 0.4988 MB / 487.4 MB, free: 2.527 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.4797, allocations: 12 kB / 487.5 MB, free: 2.516 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.4797, allocations: 12 kB / 487.5 MB, free: 2.504 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004457/0.4802, allocations: 276.7 kB / 487.7 MB, free: 2.199 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.4802, allocations: 0 / 487.7 MB, free: 2.199 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.4802, allocations: 8 kB / 487.7 MB, free: 2.191 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.4803, allocations: 4 kB / 487.7 MB, free: 2.188 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.4805, allocations: 131.9 kB / 487.9 MB, free: 2.059 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.4818, allocations: 0.707 MB / 488.6 MB, free: 1.301 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.4821, allocations: 211.8 kB / 488.8 MB, free: 1.086 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.4823, allocations: 84.83 kB / 488.9 MB, free: 1 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.4823, allocations: 3.938 kB / 488.9 MB, free: 0.9961 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.4827, allocations: 198.3 kB / 489.1 MB, free: 0.7891 MB / 362.8 MB Notification: Performance of pre-optimization done (n=27): time 2.414e-06/0.4828, allocations: 0 / 489.1 MB, free: 0.7891 MB / 362.8 MB Notification: Performance of matching and sorting (n=27): time 0.0006764/0.4834, allocations: 335 kB / 489.4 MB, free: 468 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.4836, allocations: 144.5 kB / 489.5 MB, free: 292 kB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001022/0.4846, allocations: 0.6374 MB / 490.2 MB, free: 15.64 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 4.413e-05/0.4847, allocations: 33.7 kB / 490.2 MB, free: 15.6 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/0.485, allocations: 244.7 kB / 490.4 MB, free: 15.36 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.938e-05/0.4851, allocations: 67.23 kB / 490.5 MB, free: 15.29 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/0.4851, allocations: 11.94 kB / 490.5 MB, free: 15.28 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002352/0.4853, allocations: 370.8 kB / 490.9 MB, free: 14.91 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.4855, allocations: 68.58 kB / 491 MB, free: 14.84 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.4858, allocations: 225.5 kB / 491.2 MB, free: 14.55 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.4859, allocations: 95.8 kB / 491.3 MB, free: 14.46 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.486, allocations: 4 kB / 491.3 MB, free: 14.46 MB / 378.8 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005375/0.4865, allocations: 344.6 kB / 491.6 MB, free: 14.11 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.4865, allocations: 8 kB / 491.6 MB, free: 14.11 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.4866, allocations: 7.953 kB / 491.6 MB, free: 14.1 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.4866, allocations: 4.188 kB / 491.6 MB, free: 14.09 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001934/0.4868, allocations: 51.91 kB / 491.7 MB, free: 14.04 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.4868, allocations: 7.938 kB / 491.7 MB, free: 14.04 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.487, allocations: 36.17 kB / 491.7 MB, free: 14 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.4871, allocations: 12 kB / 491.7 MB, free: 13.99 MB / 378.8 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(fixed = false ) "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 () * 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.0002382/0.4873, allocations: 149.2 kB / 491.9 MB, free: 13.84 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.924e-05/0.4874, allocations: 59.34 kB / 491.9 MB, free: 13.78 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007169/0.4882, allocations: 363.5 kB / 492.3 MB, free: 13.42 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.4882, allocations: 7.953 kB / 492.3 MB, free: 13.41 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.4882, allocations: 0 / 492.3 MB, free: 13.41 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.4882, allocations: 0 / 492.3 MB, free: 13.41 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005749/0.4888, allocations: 449.2 kB / 492.7 MB, free: 12.92 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.4888, allocations: 4 kB / 492.7 MB, free: 12.92 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.09e-05/0.4889, allocations: 15.98 kB / 492.8 MB, free: 12.9 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.4889, allocations: 0 / 492.8 MB, free: 12.9 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.4889, allocations: 12 kB / 492.8 MB, free: 12.89 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.489, allocations: 7.984 kB / 492.8 MB, free: 12.88 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.489, allocations: 3.953 kB / 492.8 MB, free: 12.88 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006275/0.4896, allocations: 381 kB / 493.2 MB, free: 12.49 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.4898, allocations: 160.4 kB / 493.3 MB, free: 12.31 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.041e-05/0.4899, allocations: 11.98 kB / 493.3 MB, free: 12.3 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001469/0.4901, allocations: 19.98 kB / 493.3 MB, free: 12.28 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.656e-05/0.4902, allocations: 27.92 kB / 493.4 MB, free: 12.25 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.4902, allocations: 19.98 kB / 493.4 MB, free: 12.23 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0007022/0.4909, allocations: 0.4976 MB / 493.9 MB, free: 11.74 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4909, allocations: 0 / 493.9 MB, free: 11.74 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005735/0.4915, allocations: 119.9 kB / 494 MB, free: 11.62 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) * 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.001056/0.4926, allocations: 443.8 kB / 494.4 MB, free: 11.25 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0004568/0.493, allocations: 255.7 kB / 494.7 MB, free: 11 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4931, allocations: 0 / 494.7 MB, free: 11 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.4932, allocations: 119.9 kB / 494.8 MB, free: 10.89 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.4938, allocations: 97.53 kB / 494.9 MB, free: 10.8 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001315/0.4951, allocations: 0.6952 MB / 495.6 MB, free: 10.08 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.4957, allocations: 0.8785 MB / 496.5 MB, free: 9.172 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002416/0.496, allocations: 91.58 kB / 496.6 MB, free: 9.078 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.4961, allocations: 51.42 kB / 496.6 MB, free: 9.027 MB / 378.8 MB Notification: Performance of SimCode: time 3.21e-07/0.4961, allocations: 0 / 496.6 MB, free: 9.027 MB / 378.8 MB Notification: Performance of Templates: time 0.01205/0.5081, allocations: 6.501 MB / 0.4913 GB, free: 2.539 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)