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.006463/0.006464, allocations: 99.47 kB / 15.73 MB, free: 6.441 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.001161/0.001161, allocations: 199.3 kB / 16.67 MB, free: 6.352 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.523/1.523, allocations: 205.1 MB / 222.6 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09622/0.09622, allocations: 10.75 MB / 280.6 MB, free: 10.37 MB / 238.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.001382/0.001382, allocations: 70.7 kB / 390.8 MB, free: 5.016 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3885, allocations: 49.02 MB / 439.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.004205/0.3928, allocations: 2.279 MB / 442.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002562/0.3954, allocations: 1.372 MB / 443.5 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.3956, allocations: 8.125 kB / 443.5 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.397, allocations: 490 kB / 444 MB, free: 2.645 MB / 318.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.0007957/0.3978, allocations: 303.2 kB / 444.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.3991, allocations: 445.1 kB / 444.7 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007819/0.3999, allocations: 0.5609 MB / 445.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.4002, allocations: 108.4 kB / 445.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003536/0.4006, allocations: 245.4 kB / 445.6 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000346/0.4009, allocations: 239.6 kB / 445.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.359e-05/0.401, allocations: 26.91 kB / 445.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.4014, allocations: 166.8 kB / 446.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.4016, allocations: 152.4 kB / 446.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002152/0.4018, allocations: 216.3 kB / 446.4 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008107/0.4026, allocations: 0.5997 MB / 447 MB, free: 1.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4026, allocations: 0 / 447 MB, free: 1.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.4027, allocations: 4 kB / 447 MB, free: 1.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.4027, allocations: 5.25 kB / 447 MB, free: 1.227 MB / 318.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.001387/0.4041, allocations: 0.9362 MB / 448 MB, free: 388 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.4041, allocations: 9.469 kB / 448 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.4042, allocations: 62.92 kB / 448 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000652/0.4049, allocations: 477 kB / 448.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/0.4049, allocations: 12.12 kB / 448.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.32e-05/0.405, allocations: 19.75 kB / 448.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004681/0.4055, allocations: 239.9 kB / 448.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.4055, allocations: 3.984 kB / 448.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.4055, allocations: 6.5 kB / 448.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.4056, allocations: 4.938 kB / 448.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.4059, allocations: 129.7 kB / 448.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.4069, allocations: 0.6769 MB / 449.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004845/0.4074, allocations: 223 kB / 449.8 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.4076, allocations: 91.2 kB / 449.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.4076, allocations: 12.08 kB / 449.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003528/0.408, allocations: 173.5 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.774e-06/0.408, allocations: 4 kB / 450.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008662/0.4089, allocations: 408 kB / 450.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.357e-05/0.409, allocations: 137.8 kB / 450.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009011/0.4099, allocations: 0.713 MB / 451.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.4099, allocations: 38.88 kB / 451.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.4101, allocations: 241.7 kB / 451.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.629e-05/0.4102, allocations: 66.55 kB / 451.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.627e-05/0.4103, allocations: 63.06 kB / 451.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.4105, allocations: 367.2 kB / 452.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.4107, allocations: 72.52 kB / 452.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.4109, allocations: 197.5 kB / 452.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000462/0.4114, allocations: 277.6 kB / 452.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4114, allocations: 5.25 kB / 452.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006115/0.4121, allocations: 332.1 kB / 452.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.4121, allocations: 6.031 kB / 453 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4121, allocations: 2.312 kB / 453 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.4121, allocations: 4.812 kB / 453 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.4123, allocations: 36.8 kB / 453 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.4123, allocations: 11.95 kB / 453 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.4125, allocations: 28.02 kB / 453 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.4125, allocations: 14.17 kB / 453 MB, free: 12.73 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.0003499/0.4129, allocations: 249.1 kB / 453.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-05/0.413, allocations: 60.33 kB / 453.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.4131, allocations: 58.88 kB / 453.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/0.4131, allocations: 2.344 kB / 453.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.4132, allocations: 5.031 kB / 453.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.4132, allocations: 0 / 453.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005088/0.4137, allocations: 409.5 kB / 453.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4137, allocations: 0 / 453.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.459e-05/0.4138, allocations: 18.33 kB / 453.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.4138, allocations: 5 kB / 453.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.4138, allocations: 3.438 kB / 453.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.4138, allocations: 5.172 kB / 453.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4138, allocations: 0 / 453.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000712/0.4145, allocations: 360.5 kB / 454.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.4147, allocations: 132.1 kB / 454.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.411e-05/0.4148, allocations: 7.406 kB / 454.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.4149, allocations: 14.64 kB / 454.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.879e-05/0.415, allocations: 24.59 kB / 454.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.415, allocations: 13.88 kB / 454.4 MB, free: 11.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007476/0.4158, allocations: 0.5125 MB / 454.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4158, allocations: 0 / 454.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005221/0.4163, allocations: 99.05 kB / 455 MB, free: 11.43 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.001245/0.4176, allocations: 471.6 kB / 455.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005472/0.4181, allocations: 233.6 kB / 455.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4182, allocations: 0 / 455.7 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.4184, allocations: 124.8 kB / 455.8 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005968/0.419, allocations: 116.5 kB / 455.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.4204, allocations: 0.8414 MB / 456.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.4209, allocations: 0.8586 MB / 457.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002184/0.4211, allocations: 83.14 kB / 457.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.4212, allocations: 41.45 kB / 457.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4212, allocations: 0 / 457.7 MB, free: 9.566 MB / 334.1 MB Notification: Performance of Templates: time 0.01311/0.4344, allocations: 6.466 MB / 464.2 MB, free: 4.262 MB / 334.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)