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.001165/0.001165, allocations: 109.4 kB / 15.99 MB, free: 6.355 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.001085/0.001085, allocations: 197.3 kB / 16.91 MB, free: 6.191 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.41/1.41, allocations: 205.1 MB / 222.8 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06797/0.06797, allocations: 10.74 MB / 280.8 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.001462/0.001463, allocations: 67.91 kB / 340.7 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08586/0.08734, allocations: 49.02 MB / 389.7 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003612/0.09099, allocations: 2.321 MB / 392 MB, free: 4.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.09321, allocations: 1.365 MB / 393.4 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.09339, allocations: 7.938 kB / 393.4 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.09446, allocations: 470.9 kB / 393.9 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005566/0.09503, allocations: 291.2 kB / 394.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.09606, allocations: 411.3 kB / 394.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006127/0.09668, allocations: 0.5572 MB / 395.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.09691, allocations: 109.5 kB / 395.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.09718, allocations: 250.9 kB / 395.5 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002431/0.09743, allocations: 251 kB / 395.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-05/0.09748, allocations: 24 kB / 395.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002578/0.09775, allocations: 155.8 kB / 395.9 MB, free: 392 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.09791, allocations: 159.5 kB / 396 MB, free: 232 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.09809, allocations: 214.6 kB / 396.3 MB, free: 16 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004719/0.09857, allocations: 467.3 kB / 396.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.09858, allocations: 0 / 396.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.09859, allocations: 0 / 396.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.0986, allocations: 0 / 396.7 MB, free: 15.56 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.001281/0.09989, allocations: 0.9121 MB / 397.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.09994, allocations: 8.031 kB / 397.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.1001, allocations: 60.28 kB / 397.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.1006, allocations: 463.7 kB / 398.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.1006, allocations: 12.38 kB / 398.2 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.1007, allocations: 24.11 kB / 398.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000425/0.1011, allocations: 248.4 kB / 398.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1011, allocations: 3.938 kB / 398.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/0.1012, allocations: 8 kB / 398.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.1012, allocations: 4 kB / 398.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002554/0.1014, allocations: 127.9 kB / 398.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000909/0.1024, allocations: 0.6792 MB / 399.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004459/0.1028, allocations: 226.8 kB / 399.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.103, allocations: 88.8 kB / 399.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.103, allocations: 4 kB / 399.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003241/0.1034, allocations: 183.1 kB / 399.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.093e-06/0.1034, allocations: 0 / 399.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000751/0.1041, allocations: 405.3 kB / 400.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.1042, allocations: 136.5 kB / 400.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007518/0.105, allocations: 0.7175 MB / 401 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.047e-05/0.105, allocations: 33.7 kB / 401 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.1052, allocations: 244.4 kB / 401.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.1053, allocations: 63.25 kB / 401.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.798e-05/0.1054, allocations: 57.7 kB / 401.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1055, allocations: 374.8 kB / 401.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.1057, allocations: 68.23 kB / 401.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.1059, allocations: 199.1 kB / 402 MB, free: 9.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004104/0.1063, allocations: 273.1 kB / 402.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1063, allocations: 0 / 402.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005245/0.1069, allocations: 336.7 kB / 402.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1069, allocations: 11.98 kB / 402.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1069, allocations: 0 / 402.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1069, allocations: 7.938 kB / 402.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.1071, allocations: 39.92 kB / 402.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.1071, allocations: 4.25 kB / 402.7 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.1073, allocations: 35.83 kB / 402.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.1073, allocations: 8 kB / 402.7 MB, free: 9.199 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.0003035/0.1076, allocations: 238.5 kB / 402.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.156e-05/0.1077, allocations: 55.28 kB / 403 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.1078, allocations: 60.88 kB / 403 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.1078, allocations: 0 / 403 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1078, allocations: 4 kB / 403 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1079, allocations: 3.984 kB / 403.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004041/0.1083, allocations: 413.1 kB / 403.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1083, allocations: 0 / 403.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.482e-05/0.1083, allocations: 11.94 kB / 403.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.1083, allocations: 0 / 403.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.1084, allocations: 7.984 kB / 403.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1084, allocations: 8.125 kB / 403.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1084, allocations: 4 kB / 403.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005906/0.109, allocations: 364.2 kB / 403.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.1091, allocations: 124.4 kB / 404 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.471e-05/0.1092, allocations: 11.98 kB / 404 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.1093, allocations: 15.98 kB / 404 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.1094, allocations: 19.98 kB / 404 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.709e-05/0.1094, allocations: 19.92 kB / 404 MB, free: 7.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005426/0.1099, allocations: 0.5066 MB / 404.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.11, allocations: 0 / 404.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004092/0.1104, allocations: 103.9 kB / 404.6 MB, free: 7.164 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.001006/0.1114, allocations: 461.8 kB / 405.1 MB, free: 6.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005513/0.1119, allocations: 259.6 kB / 405.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.112, allocations: 0 / 405.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.1122, allocations: 119.9 kB / 405.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.1128, allocations: 124.1 kB / 405.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.1141, allocations: 0.9926 MB / 406.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.1145, allocations: 0.87 MB / 407.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.786e-05/0.1146, allocations: 39.44 kB / 407.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1147, allocations: 7.938 kB / 407.5 MB, free: 4.359 MB / 302.1 MB Notification: Performance of Templates: time 0.01009/0.1248, allocations: 7.211 MB / 414.7 MB, free: 13.14 MB / 318.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)