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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.000797/0.000797, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005028/0.005028, allocations: 169 kB / 16.26 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1718/0.1718, allocations: 11.15 MB / 302.6 MB, free: 2.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003794/0.0003795, allocations: 8 kB / 366.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1093, allocations: 52.99 MB / 419.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002595/0.1119, allocations: 1.959 MB / 421.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002325/0.1143, allocations: 1.423 MB / 422.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.1144, allocations: 7.938 kB / 422.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.1155, allocations: 474.4 kB / 423.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005419/0.116, allocations: 279.2 kB / 423.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.1171, allocations: 442.8 kB / 423.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005433/0.1177, allocations: 0.5493 MB / 424.4 MB, free: 300 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.1179, allocations: 105.7 kB / 424.5 MB, free: 188 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2059/0.3238, allocations: 199.4 kB / 424.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.3243, allocations: 216.5 kB / 425 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.723e-05/0.3244, allocations: 6.656 kB / 425 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003765/0.3248, allocations: 131.1 kB / 425.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001878/0.325, allocations: 136.7 kB / 425.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.3252, allocations: 214.5 kB / 425.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000629/0.3258, allocations: 0.5642 MB / 426 MB, free: 35.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3258, allocations: 0.6562 kB / 426 MB, free: 35.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.3259, allocations: 0 / 426 MB, free: 35.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3259, allocations: 4.906 kB / 426 MB, free: 35.19 MB / 350.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.001103/0.327, allocations: 0.8338 MB / 426.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.327, allocations: 11.56 kB / 426.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.303e-05/0.3271, allocations: 58.81 kB / 426.9 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.3276, allocations: 462.2 kB / 427.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/0.3277, allocations: 16.91 kB / 427.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.3277, allocations: 16.81 kB / 427.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.3281, allocations: 252.5 kB / 427.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.3281, allocations: 1.531 kB / 427.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.3281, allocations: 10.19 kB / 427.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.3282, allocations: 3.094 kB / 427.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002264/0.3284, allocations: 128.3 kB / 427.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008769/0.3293, allocations: 0.6774 MB / 428.5 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004285/0.3297, allocations: 221.3 kB / 428.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.3299, allocations: 88.16 kB / 428.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.3299, allocations: 3.625 kB / 428.8 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003142/0.3303, allocations: 179.4 kB / 428.9 MB, free: 33.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.774e-06/0.3303, allocations: 0 / 428.9 MB, free: 33.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007506/0.331, allocations: 407.8 kB / 429.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.3311, allocations: 134.5 kB / 429.5 MB, free: 33.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007359/0.3318, allocations: 0.7094 MB / 430.2 MB, free: 33.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3319, allocations: 33.45 kB / 430.2 MB, free: 33.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.332, allocations: 249.3 kB / 430.4 MB, free: 33.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.972e-05/0.3321, allocations: 68.64 kB / 430.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.846e-05/0.3321, allocations: 37.98 kB / 430.6 MB, free: 33.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3323, allocations: 370.5 kB / 430.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.3324, allocations: 69.03 kB / 431 MB, free: 32.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3326, allocations: 201.5 kB / 431.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.333, allocations: 266.3 kB / 431.4 MB, free: 32.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.333, allocations: 2.562 kB / 431.4 MB, free: 32.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004565/0.3335, allocations: 331.5 kB / 431.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3335, allocations: 9.859 kB / 431.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3335, allocations: 3 kB / 431.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.3335, allocations: 3.781 kB / 431.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3337, allocations: 37.34 kB / 431.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3337, allocations: 7.672 kB / 431.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.3339, allocations: 39.77 kB / 431.9 MB, free: 32.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.3339, allocations: 13.22 kB / 431.9 MB, free: 32.66 MB / 350.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.0002544/0.3342, allocations: 247.7 kB / 432.1 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.216e-05/0.3342, allocations: 53.69 kB / 432.2 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.451e-05/0.3343, allocations: 59.42 kB / 432.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.3343, allocations: 4 kB / 432.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3343, allocations: 3.094 kB / 432.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3343, allocations: 2.156 kB / 432.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.3346, allocations: 407.7 kB / 432.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.3346, allocations: 0 / 432.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.032e-05/0.3347, allocations: 12.19 kB / 432.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3347, allocations: 0 / 432.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.3347, allocations: 9.906 kB / 432.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.3347, allocations: 6.906 kB / 432.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3347, allocations: 0 / 432.7 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/0.3352, allocations: 360.6 kB / 433 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.985e-05/0.3353, allocations: 142.5 kB / 433.2 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.659e-05/0.3354, allocations: 6.5 kB / 433.2 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.3355, allocations: 20.78 kB / 433.2 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.3356, allocations: 22.88 kB / 433.2 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.141e-05/0.3356, allocations: 10.38 kB / 433.2 MB, free: 32.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005395/0.3362, allocations: 0.5098 MB / 433.7 MB, free: 31.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3362, allocations: 0.7812 kB / 433.7 MB, free: 31.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003872/0.3366, allocations: 97.2 kB / 433.8 MB, free: 31.98 MB / 350.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.001018/0.3376, allocations: 464.6 kB / 434.3 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004912/0.3381, allocations: 231 kB / 434.5 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3381, allocations: 0.9844 kB / 434.5 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.3383, allocations: 114 kB / 434.6 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005839/0.3389, allocations: 113.2 kB / 434.7 MB, free: 31.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.3401, allocations: 0.9565 MB / 435.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.3404, allocations: 0.8601 MB / 436.5 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000217/0.3406, allocations: 86.22 kB / 436.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.202e-05/0.3407, allocations: 36.31 kB / 436.7 MB, free: 30.65 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3407, allocations: 0 / 436.7 MB, free: 30.65 MB / 350.1 MB Notification: Performance of Templates: time 0.009596/0.3503, allocations: 6.032 MB / 442.7 MB, free: 30.16 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)