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.0007969/0.0007968, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0009085/0.0009086, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0871/0.0871, allocations: 10.74 MB / 281.1 MB, free: 10.55 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.0004923/0.0004925, allocations: 12 kB / 341.6 MB, free: 23.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08323/0.08373, allocations: 50.01 MB / 391.6 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002693/0.08646, allocations: 1.898 MB / 393.5 MB, free: 3.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.08875, allocations: 1.299 MB / 394.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002953/0.08908, allocations: 11.94 kB / 394.9 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.09012, allocations: 446.9 kB / 395.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006026/0.09073, allocations: 271.2 kB / 395.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.09177, allocations: 379.2 kB / 395.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007167/0.0925, allocations: 0.4986 MB / 396.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.09274, allocations: 96.38 kB / 396.5 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003375/0.09309, allocations: 211.1 kB / 396.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002919/0.09339, allocations: 215.2 kB / 396.9 MB, free: 452 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.962e-05/0.09346, allocations: 8 kB / 396.9 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002711/0.09373, allocations: 119.8 kB / 397.1 MB, free: 324 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001596/0.0939, allocations: 131.6 kB / 397.2 MB, free: 192 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.87e-05/0.09401, allocations: 101.4 kB / 397.3 MB, free: 84 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.09451, allocations: 447.2 kB / 397.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.09452, allocations: 3.938 kB / 397.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09453, allocations: 4 kB / 397.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.09455, allocations: 0 / 397.7 MB, free: 15.64 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.00132/0.09588, allocations: 0.8383 MB / 398.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.09592, allocations: 8.031 kB / 398.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.09607, allocations: 55.34 kB / 398.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005799/0.09665, allocations: 450.8 kB / 399.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.09669, allocations: 12 kB / 399.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.09672, allocations: 16 kB / 399.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.09714, allocations: 240.5 kB / 399.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.09717, allocations: 3.953 kB / 399.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.0972, allocations: 15.92 kB / 399.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.09723, allocations: 4 kB / 399.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.09747, allocations: 127.9 kB / 399.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009387/0.09842, allocations: 0.6638 MB / 400.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004516/0.09889, allocations: 226.9 kB / 400.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.09907, allocations: 92.75 kB / 400.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.09911, allocations: 3.984 kB / 400.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003244/0.09944, allocations: 183.1 kB / 400.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.09945, allocations: 0 / 400.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007978/0.1003, allocations: 397.3 kB / 401 MB, free: 12.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.1003, allocations: 132.5 kB / 401.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/0.1011, allocations: 0.7098 MB / 401.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.1012, allocations: 37.7 kB / 401.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.1013, allocations: 248.4 kB / 402.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.161e-05/0.1014, allocations: 63.23 kB / 402.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.228e-05/0.1014, allocations: 8 kB / 402.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1016, allocations: 366.8 kB / 402.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.1017, allocations: 68.23 kB / 402.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.102, allocations: 203 kB / 402.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.1022, allocations: 91.97 kB / 402.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1022, allocations: 0 / 402.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005692/0.1028, allocations: 336.7 kB / 403.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.1028, allocations: 7.938 kB / 403.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.1028, allocations: 4 kB / 403.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1028, allocations: 4 kB / 403.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.103, allocations: 39.86 kB / 403.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.103, allocations: 7.984 kB / 403.3 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.1032, allocations: 35.78 kB / 403.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.1032, allocations: 16.17 kB / 403.4 MB, free: 9.66 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],$whenCondition4,$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition1,booleanConstant2.combiTimeTable.nextTimeEvent,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled,or_gate.u[2],and_gate.u[3],booleanConstant1.combiTimeTable.nextTimeEvent,$PRE.booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,and_gate.u[4],booleanConstant.combiTimeTable.nextTimeEvent,$PRE.booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEventScaled,not_gate_C.y[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003426/0.1036, allocations: 234.5 kB / 403.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.1037, allocations: 63.28 kB / 403.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.1038, allocations: 64.94 kB / 403.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.1038, allocations: 4 kB / 403.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/0.1038, allocations: 0 / 403.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1038, allocations: 0 / 403.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.1042, allocations: 405.3 kB / 404.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-05/0.1043, allocations: 4 kB / 404.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-05/0.1043, allocations: 11.98 kB / 404.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.1043, allocations: 7.953 kB / 404.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.1044, allocations: 11.94 kB / 404.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.1044, allocations: 3.984 kB / 404.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1044, allocations: 0 / 404.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005435/0.1049, allocations: 352.3 kB / 404.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.1051, allocations: 140.4 kB / 404.6 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.187e-05/0.1051, allocations: 11.95 kB / 404.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.1053, allocations: 19.98 kB / 404.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.9e-05/0.1053, allocations: 19.95 kB / 404.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.562e-05/0.1054, allocations: 16 kB / 404.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006008/0.106, allocations: 0.5105 MB / 405.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.106, allocations: 0 / 405.2 MB, free: 7.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000424/0.1064, allocations: 95.98 kB / 405.3 MB, free: 7.621 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/0.1074, allocations: 464.5 kB / 405.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004979/0.1079, allocations: 227.6 kB / 406 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.108, allocations: 0 / 406 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002094/0.1082, allocations: 111.9 kB / 406.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.1087, allocations: 107.5 kB / 406.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001247/0.1099, allocations: 0.8882 MB / 407.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.1104, allocations: 0.8665 MB / 408 MB, free: 5.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002192/0.1106, allocations: 87.75 kB / 408 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.1107, allocations: 51.36 kB / 408.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1107, allocations: 0 / 408.1 MB, free: 4.891 MB / 302.1 MB Notification: Performance of Templates: time 0.01081/0.1216, allocations: 5.881 MB / 414 MB, free: 15.02 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: