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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006242/0.006242, allocations: 179.3 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08453/0.08453, allocations: 10.58 MB / 18.45 MB, free: 2.172 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.946/1.946, allocations: 205.2 MB / 226.5 MB, free: 0.5195 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.001109/0.001108, allocations: 82.94 kB / 276.9 MB, free: 15.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.258e-06/9.287e-06, allocations: 0 / 332.9 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3298, allocations: 49.99 MB / 382.9 MB, free: 39.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.4426, allocations: 80.89 MB / 463.8 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.4429, allocations: 83.95 kB / 463.9 MB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0382/0.4811, allocations: 13.37 MB / 477.3 MB, free: 9.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.32e-05/0.4812, allocations: 12 kB / 477.3 MB, free: 9.309 MB / 362.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.001147/0.4823, allocations: 0.7605 MB / 478 MB, free: 8.484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.4824, allocations: 8.031 kB / 478 MB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.4825, allocations: 55.34 kB / 478.1 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009737/0.4835, allocations: 0.4988 MB / 478.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.4835, allocations: 11.94 kB / 478.6 MB, free: 7.867 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.89e-05/0.4836, allocations: 19.98 kB / 478.6 MB, free: 7.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002503/0.4838, allocations: 112 kB / 478.7 MB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000385/0.4842, allocations: 260.9 kB / 479 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4843, allocations: 0 / 479 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.305e-05/0.4843, allocations: 7.984 kB / 479 MB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.4843, allocations: 4 kB / 479 MB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.4854, allocations: 0.6607 MB / 479.7 MB, free: 6.738 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.4857, allocations: 198.9 kB / 479.9 MB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.4859, allocations: 85.17 kB / 479.9 MB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.4859, allocations: 11.94 kB / 480 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.4862, allocations: 164.8 kB / 480.1 MB, free: 6.262 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.804e-06/0.4862, allocations: 0 / 480.1 MB, free: 6.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.000576/0.4868, allocations: 276.2 kB / 480.4 MB, free: 5.988 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.349e-05/0.4869, allocations: 144.5 kB / 480.5 MB, free: 5.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008164/0.4877, allocations: 0.6036 MB / 481.1 MB, free: 5.207 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.4877, allocations: 29.7 kB / 481.2 MB, free: 5.172 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.4879, allocations: 148.5 kB / 481.3 MB, free: 5.023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.986e-05/0.488, allocations: 67.23 kB / 481.4 MB, free: 4.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.488, allocations: 0 / 481.4 MB, free: 4.957 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.4882, allocations: 366.8 kB / 481.7 MB, free: 4.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.4883, allocations: 68.27 kB / 481.8 MB, free: 4.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.4885, allocations: 225.1 kB / 482 MB, free: 4.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.4887, allocations: 99.86 kB / 482.1 MB, free: 4.141 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.4887, allocations: 3.938 kB / 482.1 MB, free: 4.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004805/0.4892, allocations: 304.8 kB / 482.4 MB, free: 3.832 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.4892, allocations: 4 kB / 482.4 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.4893, allocations: 4 kB / 482.4 MB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.4893, allocations: 8.328 kB / 482.4 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.4895, allocations: 51.86 kB / 482.5 MB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.4895, allocations: 7.906 kB / 482.5 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001971/0.4897, allocations: 23.92 kB / 482.5 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.4897, allocations: 15.91 kB / 482.5 MB, free: 3.719 MB / 362.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.000199/0.4899, allocations: 148.7 kB / 482.7 MB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.936e-05/0.49, allocations: 55.34 kB / 482.7 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005912/0.4906, allocations: 312 kB / 483 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.4906, allocations: 4 kB / 483 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4907, allocations: 3.906 kB / 483 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4907, allocations: 0 / 483 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.4912, allocations: 406 kB / 483.4 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.4912, allocations: 3.906 kB / 483.4 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.529e-05/0.4913, allocations: 23.98 kB / 483.5 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.4913, allocations: 0 / 483.5 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.4913, allocations: 4 kB / 483.5 MB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.4913, allocations: 4 kB / 483.5 MB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.4913, allocations: 3.938 kB / 483.5 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005323/0.4919, allocations: 316.3 kB / 483.8 MB, free: 2.391 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.4921, allocations: 164.4 kB / 483.9 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.08e-05/0.4922, allocations: 3.984 kB / 484 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.4923, allocations: 19.98 kB / 484 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/0.4924, allocations: 23.97 kB / 484 MB, free: 2.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.4924, allocations: 8 kB / 484 MB, free: 2.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005605/0.493, allocations: 482.9 kB / 484.5 MB, free: 1.688 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004671/0.4935, allocations: 111.8 kB / 484.6 MB, free: 1.578 MB / 362.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.0008274/0.4943, allocations: 367 kB / 484.9 MB, free: 1.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004789/0.4948, allocations: 251.7 kB / 485.2 MB, free: 1.004 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4948, allocations: 0 / 485.2 MB, free: 1.004 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001939/0.495, allocations: 119.9 kB / 485.3 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005133/0.4955, allocations: 86.02 kB / 485.4 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.4968, allocations: 0.6807 MB / 486.1 MB, free: 100 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006309/0.4974, allocations: 0.9217 MB / 487 MB, free: 15.15 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4975, allocations: 0 / 487 MB, free: 15.15 MB / 378.7 MB Notification: Performance of Templates: time 0.01195/0.5094, allocations: 5.963 MB / 493 MB, free: 9.207 MB / 378.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)