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.001445/0.001445, allocations: 113.8 kB / 16.42 MB, free: 6.469 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.001606/0.001606, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.287/1.287, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1169/0.1169, allocations: 10.73 MB / 281.3 MB, free: 1.289 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.001433/0.001433, allocations: 74.08 kB / 391.5 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07129/0.07273, allocations: 49.03 MB / 440.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003325/0.07609, allocations: 2.27 MB / 442.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.07808, allocations: 1.373 MB / 444.2 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000334/0.07844, allocations: 7.938 kB / 444.2 MB, free: 136 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.07955, allocations: 490.3 kB / 444.7 MB, free: 15.66 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.000706/0.08027, allocations: 310.9 kB / 445 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.08137, allocations: 445.8 kB / 445.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006587/0.08204, allocations: 0.5572 MB / 446 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.08229, allocations: 117.6 kB / 446.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003735/0.08268, allocations: 247.1 kB / 446.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003022/0.08299, allocations: 243 kB / 446.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-05/0.08306, allocations: 24 kB / 446.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003142/0.08338, allocations: 159.8 kB / 446.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001704/0.08357, allocations: 163.4 kB / 446.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.08378, allocations: 210.7 kB / 447.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006481/0.08443, allocations: 0.5955 MB / 447.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.08445, allocations: 7.984 kB / 447.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.08446, allocations: 0 / 447.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.08448, allocations: 0 / 447.7 MB, free: 12.61 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.001315/0.0858, allocations: 0.9192 MB / 448.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.08585, allocations: 8.031 kB / 448.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.08598, allocations: 56.28 kB / 448.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.08665, allocations: 463.8 kB / 449.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.08668, allocations: 20.3 kB / 449.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.08672, allocations: 24.12 kB / 449.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004508/0.08718, allocations: 236.7 kB / 449.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.0872, allocations: 0 / 449.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.08723, allocations: 4 kB / 449.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.08726, allocations: 11.98 kB / 449.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.08754, allocations: 127.9 kB / 449.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.08856, allocations: 0.6754 MB / 450.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004826/0.08906, allocations: 228.8 kB / 450.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001767/0.08925, allocations: 88.8 kB / 450.5 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.08928, allocations: 4 kB / 450.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.08963, allocations: 187 kB / 450.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.084e-06/0.08964, allocations: 0 / 450.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008128/0.09046, allocations: 408.5 kB / 451.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.256e-05/0.09055, allocations: 136.5 kB / 451.3 MB, free: 8.824 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008409/0.0914, allocations: 0.7099 MB / 452 MB, free: 8.102 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.09144, allocations: 33.7 kB / 452 MB, free: 8.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.09163, allocations: 236.5 kB / 452.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.657e-05/0.09171, allocations: 71.17 kB / 452.3 MB, free: 7.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.197e-05/0.09181, allocations: 57.69 kB / 452.4 MB, free: 7.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.09196, allocations: 366.8 kB / 452.7 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.09214, allocations: 80.23 kB / 452.8 MB, free: 7.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.0924, allocations: 199.1 kB / 453 MB, free: 7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004686/0.09288, allocations: 269.1 kB / 453.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.0929, allocations: 7.938 kB / 453.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005822/0.09348, allocations: 328.7 kB / 453.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.09351, allocations: 8 kB / 453.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.529e-05/0.09353, allocations: 4 kB / 453.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.09355, allocations: 4 kB / 453.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.09372, allocations: 35.92 kB / 453.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.09374, allocations: 4 kB / 453.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.09392, allocations: 35.98 kB / 453.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.09396, allocations: 15.94 kB / 453.7 MB, free: 6.262 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.0002821/0.09424, allocations: 250.7 kB / 453.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.497e-05/0.09432, allocations: 51.34 kB / 454 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.44e-05/0.09443, allocations: 68.86 kB / 454.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.09444, allocations: 3.984 kB / 454.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.09445, allocations: 3.938 kB / 454.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.09456, allocations: 124.5 kB / 454.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.595e-05/0.09465, allocations: 7.984 kB / 454.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.09479, allocations: 11.98 kB / 454.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.728e-05/0.09487, allocations: 19.92 kB / 454.2 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005995/0.09547, allocations: 376.7 kB / 454.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006288/0.09611, allocations: 0.4987 MB / 455.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002/0.09633, allocations: 103.9 kB / 455.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005753/0.09691, allocations: 0.5105 MB / 455.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of Backend: time 7.21e-07/0.09692, allocations: 0 / 455.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.09863, allocations: 0.6178 MB / 456.3 MB, free: 3.699 MB / 334.1 MB Notification: Performance of SimCode: time 0.001577/0.1002, allocations: 1.273 MB / 457.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of Templates: time 0.01249/0.1127, allocations: 6.624 MB / 464.2 MB, free: 11.77 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)