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.001259/0.001259, allocations: 170.6 kB / 7.646 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07438/0.07438, allocations: 10.65 MB / 18.73 MB, free: 1.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.782/1.782, allocations: 205.3 MB / 226.9 MB, free: 7.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008308/0.0008308, allocations: 86.44 kB / 277.3 MB, free: 5.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.791e-05/1.791e-05, allocations: 0 / 333.5 MB, free: 28.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.0984, allocations: 50 MB / 383.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3474/0.4458, allocations: 81.25 MB / 464.8 MB, free: 3.469 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002653/0.4462, allocations: 91.41 kB / 464.9 MB, free: 3.422 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03885/0.485, allocations: 13.79 MB / 478.7 MB, free: 7.965 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4851, allocations: 7.938 kB / 478.7 MB, free: 7.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.563e-05/0.4851, allocations: 12 kB / 478.7 MB, free: 7.945 MB / 346.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.001242/0.4864, allocations: 0.752 MB / 479.4 MB, free: 7.164 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.4864, allocations: 19.97 kB / 479.5 MB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.4866, allocations: 59.3 kB / 479.5 MB, free: 7.086 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009682/0.4876, allocations: 497.2 kB / 480 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.4876, allocations: 14.98 kB / 480 MB, free: 6.613 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.4877, allocations: 11.94 kB / 480 MB, free: 6.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002315/0.4879, allocations: 113.1 kB / 480.1 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.4883, allocations: 255.2 kB / 480.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.4883, allocations: 0 / 480.4 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.4884, allocations: 4 kB / 480.4 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.4884, allocations: 7.953 kB / 480.4 MB, free: 6.277 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.4895, allocations: 0.6667 MB / 481.1 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.4899, allocations: 200.1 kB / 481.3 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.49, allocations: 90.52 kB / 481.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.49, allocations: 0 / 481.3 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000327/0.4904, allocations: 186.9 kB / 481.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 2.003e-06/0.4904, allocations: 0 / 481.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006736/0.4911, allocations: 323.7 kB / 481.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.4911, allocations: 140.5 kB / 482 MB, free: 4.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008521/0.492, allocations: 0.6033 MB / 482.6 MB, free: 4.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.4921, allocations: 29.64 kB / 482.6 MB, free: 4.414 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.4922, allocations: 247.8 kB / 482.9 MB, free: 4.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.66e-05/0.4923, allocations: 61.86 kB / 482.9 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.4923, allocations: 0 / 482.9 MB, free: 4.219 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.4925, allocations: 374.6 kB / 483.3 MB, free: 3.867 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.4927, allocations: 64.89 kB / 483.3 MB, free: 3.824 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.4929, allocations: 211.2 kB / 483.6 MB, free: 3.594 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001813/0.4931, allocations: 99.48 kB / 483.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4931, allocations: 0 / 483.6 MB, free: 3.523 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004906/0.4936, allocations: 305.6 kB / 483.9 MB, free: 3.273 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.4936, allocations: 16.28 kB / 484 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.4936, allocations: 0 / 484 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.4937, allocations: 8 kB / 484 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.4939, allocations: 39.91 kB / 484 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.4939, allocations: 16.08 kB / 484 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.4941, allocations: 27.83 kB / 484.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.4941, allocations: 15.88 kB / 484.1 MB, free: 3.156 MB / 346.7 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.0002009/0.4943, allocations: 150.3 kB / 484.2 MB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.237e-05/0.4944, allocations: 55.34 kB / 484.3 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006159/0.4951, allocations: 347.3 kB / 484.6 MB, free: 2.684 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.4951, allocations: 4 kB / 484.6 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4951, allocations: 4 kB / 484.6 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.4951, allocations: 3.953 kB / 484.6 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004268/0.4955, allocations: 398.9 kB / 485 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.4955, allocations: 0 / 485 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.199e-05/0.4956, allocations: 23.67 kB / 485 MB, free: 2.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.4956, allocations: 4 kB / 485 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.4957, allocations: 4 kB / 485 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.4957, allocations: 0 / 485 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4957, allocations: 80 / 485 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005452/0.4962, allocations: 373.1 kB / 485.4 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.4964, allocations: 164.5 kB / 485.6 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.4965, allocations: 6.562 kB / 485.6 MB, free: 1.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.4966, allocations: 11.98 kB / 485.6 MB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.235e-05/0.4967, allocations: 34.39 kB / 485.6 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.461e-05/0.4968, allocations: 8 kB / 485.6 MB, free: 1.762 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005313/0.4973, allocations: 484.4 kB / 486.1 MB, free: 1.418 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4973, allocations: 0 / 486.1 MB, free: 1.418 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004769/0.4978, allocations: 107.4 kB / 486.2 MB, free: 1.316 MB / 346.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: 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.0009633/0.4988, allocations: 403.3 kB / 486.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.4992, allocations: 237.7 kB / 486.8 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4992, allocations: 4 kB / 486.8 MB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.4993, allocations: 118.7 kB / 486.9 MB, free: 0.668 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.4999, allocations: 106.5 kB / 487.1 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.5011, allocations: 0.6778 MB / 487.7 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004966/0.5016, allocations: 0.8734 MB / 488.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002885/0.5019, allocations: 99.48 kB / 488.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.502, allocations: 49.44 kB / 488.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.502, allocations: 0 / 488.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of Templates: time 0.0126/0.5146, allocations: 5.941 MB / 494.7 MB, free: 9.047 MB / 362.7 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)