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.0009285/0.0009286, allocations: 97.72 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.006922/0.006922, allocations: 170.5 kB / 16.27 MB, free: 6.652 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.675/1.675, allocations: 205.4 MB / 222.4 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1048/0.1048, allocations: 10.74 MB / 281.5 MB, free: 10.68 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.0005333/0.0005334, allocations: 15.34 kB / 342.2 MB, free: 23.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09515, allocations: 50.01 MB / 392.2 MB, free: 5.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002792/0.098, allocations: 1.959 MB / 394.2 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002305/0.1003, allocations: 1.35 MB / 395.6 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.1005, allocations: 11.94 kB / 395.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1016, allocations: 463 kB / 396 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006183/0.1023, allocations: 295.1 kB / 396.3 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.1034, allocations: 407.3 kB / 396.7 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005936/0.104, allocations: 0.5571 MB / 397.3 MB, free: 412 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003745/0.1044, allocations: 97.5 kB / 397.4 MB, free: 308 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003227/0.1047, allocations: 207 kB / 397.6 MB, free: 100 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.105, allocations: 219 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.795e-05/0.105, allocations: 8 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000272/0.1053, allocations: 127.8 kB / 397.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1055, allocations: 131.6 kB / 398 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.1056, allocations: 224.2 kB / 398.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007938/0.1064, allocations: 0.5568 MB / 398.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1065, allocations: 7.938 kB / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1065, allocations: 0 / 398.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1065, allocations: 0 / 398.8 MB, free: 14.83 MB / 302.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.001369/0.1079, allocations: 0.8307 MB / 399.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1079, allocations: 8.031 kB / 399.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.184e-05/0.108, allocations: 52.28 kB / 399.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.1086, allocations: 471.7 kB / 400.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.1087, allocations: 12.38 kB / 400.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/0.1087, allocations: 20.12 kB / 400.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004339/0.1091, allocations: 248.4 kB / 400.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.1092, allocations: 4 kB / 400.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.488e-05/0.1092, allocations: 8 kB / 400.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.1092, allocations: 4 kB / 400.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.1095, allocations: 119.9 kB / 400.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.1108, allocations: 0.6909 MB / 401.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.1114, allocations: 217.9 kB / 401.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.1116, allocations: 100.7 kB / 401.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.1117, allocations: 0 / 401.6 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00038/0.1121, allocations: 175.1 kB / 401.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.784e-06/0.1121, allocations: 0 / 401.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001066/0.1132, allocations: 405.3 kB / 402.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.1133, allocations: 152.3 kB / 402.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009723/0.1143, allocations: 0.7098 MB / 403 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.1143, allocations: 33.7 kB / 403 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.1146, allocations: 248.5 kB / 403.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.881e-05/0.1146, allocations: 55.25 kB / 403.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.1147, allocations: 41.69 kB / 403.4 MB, free: 10 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.1149, allocations: 366.8 kB / 403.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.1151, allocations: 76.23 kB / 403.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/0.1154, allocations: 199.1 kB / 404 MB, free: 9.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005166/0.1159, allocations: 273.1 kB / 404.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.116, allocations: 4 kB / 404.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006411/0.1166, allocations: 328.6 kB / 404.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.1166, allocations: 8 kB / 404.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.1167, allocations: 4 kB / 404.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.849e-05/0.1167, allocations: 4 kB / 404.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.1169, allocations: 39.92 kB / 404.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.1169, allocations: 4 kB / 404.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.1172, allocations: 36.08 kB / 404.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.1172, allocations: 8 kB / 404.7 MB, free: 8.582 MB / 302.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.0004502/0.1177, allocations: 246.8 kB / 404.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.595e-05/0.1178, allocations: 59.25 kB / 405 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.1179, allocations: 56.88 kB / 405 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.1179, allocations: 0 / 405 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.1179, allocations: 0 / 405 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.118, allocations: 7.984 kB / 405.1 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/0.1185, allocations: 401.2 kB / 405.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.1185, allocations: 7.938 kB / 405.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.449e-05/0.1186, allocations: 11.98 kB / 405.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1186, allocations: 0 / 405.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.1186, allocations: 8 kB / 405.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1186, allocations: 3.938 kB / 405.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1187, allocations: 8 kB / 405.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.1193, allocations: 360.1 kB / 405.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.1195, allocations: 144.4 kB / 406 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.116e-05/0.1195, allocations: 7.984 kB / 406 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.1197, allocations: 23.92 kB / 406 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.97e-05/0.1198, allocations: 23.92 kB / 406 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.1198, allocations: 15.98 kB / 406.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000606/0.1204, allocations: 0.5066 MB / 406.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1204, allocations: 0 / 406.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00045/0.1209, allocations: 99.98 kB / 406.7 MB, free: 6.527 MB / 302.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.001317/0.1222, allocations: 445 kB / 407.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005632/0.1228, allocations: 243.5 kB / 407.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1228, allocations: 0 / 407.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.123, allocations: 111.9 kB / 407.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006426/0.1237, allocations: 119.6 kB / 407.6 MB, free: 5.719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.1251, allocations: 0.9547 MB / 408.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.1255, allocations: 0.8587 MB / 409.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002367/0.1258, allocations: 87.47 kB / 409.5 MB, free: 3.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.942e-05/0.1259, allocations: 39.44 kB / 409.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1259, allocations: 0 / 409.5 MB, free: 3.734 MB / 302.1 MB Notification: Performance of Templates: time 0.0131/0.139, allocations: 6.021 MB / 415.5 MB, free: 13.71 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: