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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.008682/0.008682, allocations: 169.5 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08923/0.08923, allocations: 10.74 MB / 26.59 MB, free: 2.262 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.4 MB / 235.2 MB, free: 180 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 88.61 kB / 285.9 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003208, allocations: 12 kB / 346.4 MB, free: 5.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 50 MB / 396.4 MB, free: 3.078 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.45, allocations: 81.7 MB / 478.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.4503, allocations: 90.12 kB / 478.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03331/0.4836, allocations: 13.97 MB / 492.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4837, allocations: 0 / 492.2 MB, free: 3.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.186e-05/0.4837, allocations: 15.94 kB / 492.2 MB, free: 3.301 MB / 346.7 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.001128/0.4849, allocations: 0.8538 MB / 493 MB, free: 2.418 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.4849, allocations: 12.03 kB / 493 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001069/0.485, allocations: 63.23 kB / 493.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007938/0.4858, allocations: 493.6 kB / 493.6 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.4859, allocations: 19.05 kB / 493.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.4859, allocations: 15.44 kB / 493.6 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.4863, allocations: 285.2 kB / 493.9 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4863, allocations: 0 / 493.9 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/0.4864, allocations: 15.42 kB / 493.9 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.4864, allocations: 4 kB / 493.9 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.4866, allocations: 141.5 kB / 494.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009342/0.4876, allocations: 0.7061 MB / 494.8 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000406/0.488, allocations: 231.1 kB / 495 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.488, allocations: 4 kB / 495 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.4883, allocations: 194.3 kB / 495.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 1.803e-06/0.4884, allocations: 0 / 495.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.000721/0.4891, allocations: 442.7 kB / 495.6 MB, free: 204 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.4891, allocations: 140.5 kB / 495.8 MB, free: 32 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008384/0.49, allocations: 0.6467 MB / 496.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/0.49, allocations: 32.95 kB / 496.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.4902, allocations: 240 kB / 496.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.785e-05/0.4903, allocations: 71.14 kB / 496.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.452e-05/0.4903, allocations: 8 kB / 496.7 MB, free: 15.19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.4905, allocations: 370.7 kB / 497.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.4907, allocations: 80.55 kB / 497.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/0.491, allocations: 229.3 kB / 497.4 MB, free: 14.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002135/0.4912, allocations: 107 kB / 497.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4912, allocations: 0 / 497.5 MB, free: 14.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000592/0.4918, allocations: 360.5 kB / 497.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4919, allocations: 4 kB / 497.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.4919, allocations: 4 kB / 497.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.4919, allocations: 4 kB / 497.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.4921, allocations: 44.22 kB / 497.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.4921, allocations: 11.98 kB / 497.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.4923, allocations: 31.83 kB / 498 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.592e-05/0.4923, allocations: 16 kB / 498 MB, free: 13.88 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 31 ($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],$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition1,and_gate.u[2],booleanConstant2.combiTimeTable.nextTimeEvent,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled,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 (37): * Single equations (assignments): 36 * 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.000324/0.4926, allocations: 250.3 kB / 498.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.748e-05/0.4927, allocations: 51.34 kB / 498.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006827/0.4934, allocations: 377.8 kB / 498.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/0.4934, allocations: 7.938 kB / 498.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.4935, allocations: 3.953 kB / 498.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4935, allocations: 11.98 kB / 498.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.494, allocations: 445.2 kB / 499.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.494, allocations: 0 / 499.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.681e-05/0.494, allocations: 19.94 kB / 499.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4941, allocations: 0 / 499.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.4941, allocations: 11.98 kB / 499.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4941, allocations: 0 / 499.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4941, allocations: 0 / 499.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006214/0.4947, allocations: 404.9 kB / 499.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.4949, allocations: 152.4 kB / 499.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.652e-05/0.495, allocations: 12 kB / 499.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.4952, allocations: 15.98 kB / 499.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.793e-05/0.4952, allocations: 23.97 kB / 499.7 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.787e-05/0.4953, allocations: 15.98 kB / 499.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006151/0.4959, allocations: 0.5066 MB / 0.4885 GB, free: 11.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4959, allocations: 3.938 kB / 0.4885 GB, free: 11.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004625/0.4964, allocations: 135.8 kB / 0.4887 GB, free: 11.38 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,and_gate.u[2],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.y[1],xor_gate.y[1],not_gate_C.y[1]) * Number of discrete states: 6 (booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 19 * 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.001036/0.4974, allocations: 460.3 kB / 0.4891 GB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005557/0.498, allocations: 264.1 kB / 0.4893 GB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.498, allocations: 8.25 kB / 0.4894 GB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.4982, allocations: 123.9 kB / 0.4895 GB, free: 10.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005045/0.4988, allocations: 113.5 kB / 0.4896 GB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.5001, allocations: 0.9618 MB / 0.4905 GB, free: 9.477 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.5006, allocations: 0.8746 MB / 0.4914 GB, free: 8.574 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002437/0.5009, allocations: 103.5 kB / 0.4915 GB, free: 8.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.501, allocations: 47.42 kB / 0.4915 GB, free: 8.426 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.501, allocations: 0 / 0.4915 GB, free: 8.426 MB / 362.7 MB Notification: Performance of Templates: time 0.01201/0.513, allocations: 6.497 MB / 0.4979 GB, free: 1.938 MB / 362.7 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)