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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007262/0.007268, allocations: 101.4 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 193.3 kB / 16.67 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09658/0.09658, allocations: 10.73 MB / 280.6 MB, free: 1.285 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 67.2 kB / 390.8 MB, free: 46.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07783/0.07922, allocations: 49.04 MB / 439.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002663/0.08191, allocations: 2.267 MB / 442.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.0835, allocations: 1.388 MB / 443.5 MB, free: 256 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.08364, allocations: 11.94 kB / 443.5 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009037/0.08456, allocations: 481 kB / 444 MB, free: 15.77 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.000578/0.08514, allocations: 306.9 kB / 444.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009626/0.08612, allocations: 446.4 kB / 444.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005522/0.08668, allocations: 0.5572 MB / 445.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002181/0.08691, allocations: 124 kB / 445.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002542/0.08717, allocations: 235.1 kB / 445.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.08743, allocations: 243 kB / 445.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.691e-05/0.0875, allocations: 28 kB / 445.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.08779, allocations: 163.8 kB / 446.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.08795, allocations: 151.6 kB / 446.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.08815, allocations: 222.5 kB / 446.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006245/0.08879, allocations: 0.5952 MB / 447 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.0888, allocations: 0 / 447 MB, free: 12.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08881, allocations: 0 / 447 MB, free: 12.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.08882, allocations: 0 / 447 MB, free: 12.74 MB / 334.1 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.001218/0.09004, allocations: 0.9344 MB / 448 MB, free: 11.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.09009, allocations: 12.03 kB / 448 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.733e-05/0.09019, allocations: 64.5 kB / 448 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.09082, allocations: 480.2 kB / 448.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.09085, allocations: 12.38 kB / 448.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.09089, allocations: 20.12 kB / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004589/0.09136, allocations: 244.6 kB / 448.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.09138, allocations: 4 kB / 448.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.64e-05/0.09141, allocations: 8 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.09144, allocations: 4 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.09172, allocations: 123.9 kB / 448.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.09278, allocations: 0.6717 MB / 449.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005024/0.0933, allocations: 226.8 kB / 449.8 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.09348, allocations: 84.81 kB / 449.9 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.388e-05/0.09352, allocations: 3.953 kB / 449.9 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003465/0.09388, allocations: 179.1 kB / 450.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.487e-06/0.09389, allocations: 3.984 kB / 450.1 MB, free: 9.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007871/0.09468, allocations: 412.9 kB / 450.5 MB, free: 9.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/0.09477, allocations: 136.5 kB / 450.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007657/0.09554, allocations: 0.7098 MB / 451.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.09559, allocations: 37.7 kB / 451.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.09578, allocations: 252.5 kB / 451.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.09584, allocations: 55.58 kB / 451.7 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.31e-05/0.09593, allocations: 65.69 kB / 451.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.09608, allocations: 370.8 kB / 452.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.09624, allocations: 68.25 kB / 452.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.09647, allocations: 207 kB / 452.3 MB, free: 7.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.09688, allocations: 277.1 kB / 452.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.0969, allocations: 0 / 452.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005275/0.09743, allocations: 325.2 kB / 452.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.09745, allocations: 4 kB / 452.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.09747, allocations: 4.25 kB / 452.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.09749, allocations: 15.94 kB / 453 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.09765, allocations: 43.91 kB / 453 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.09767, allocations: 7.938 kB / 453 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.09783, allocations: 27.88 kB / 453 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.495e-05/0.09789, allocations: 16 kB / 453.1 MB, free: 6.344 MB / 334.1 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.0002748/0.09817, allocations: 242.5 kB / 453.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/0.09825, allocations: 59.62 kB / 453.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.393e-05/0.09835, allocations: 56.86 kB / 453.4 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.09837, allocations: 4 kB / 453.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.09838, allocations: 0 / 453.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.09839, allocations: 0 / 453.4 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003815/0.09877, allocations: 417.2 kB / 453.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.09879, allocations: 4 kB / 453.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.695e-05/0.09884, allocations: 15.94 kB / 453.8 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.09885, allocations: 0 / 453.8 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.09887, allocations: 11.98 kB / 453.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.09888, allocations: 0 / 453.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.09888, allocations: 0 / 453.8 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005473/0.09943, allocations: 361.2 kB / 454.2 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.09955, allocations: 136.7 kB / 454.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.492e-05/0.09961, allocations: 4 kB / 454.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.09973, allocations: 11.98 kB / 454.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.0998, allocations: 23.97 kB / 454.4 MB, free: 4.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.09983, allocations: 19.98 kB / 454.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000533/0.1004, allocations: 0.5105 MB / 454.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1004, allocations: 0 / 454.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.1008, allocations: 99.81 kB / 455 MB, free: 4.301 MB / 334.1 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 (booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 13 * 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.0009895/0.1017, allocations: 462.4 kB / 455.4 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004916/0.1022, allocations: 224 kB / 455.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1023, allocations: 0 / 455.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.1025, allocations: 124.1 kB / 455.8 MB, free: 3.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005525/0.103, allocations: 129.3 kB / 455.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.1043, allocations: 0.8444 MB / 456.8 MB, free: 2.625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.1047, allocations: 0.8545 MB / 457.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.1049, allocations: 83.48 kB / 457.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.105, allocations: 43.44 kB / 457.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.105, allocations: 0 / 457.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of Templates: time 0.01093/0.116, allocations: 6.466 MB / 464.2 MB, free: 11.17 MB / 350.1 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)