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.001196/0.001196, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09809/0.09809, allocations: 10.75 MB / 27.48 MB, free: 1.867 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.328/1.328, allocations: 205.1 MB / 235.7 MB, free: 11.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 88.88 kB / 285.5 MB, free: 12.87 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 55.92 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2513, allocations: 49.01 MB / 394.3 MB, free: 35.57 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003993/0.2554, allocations: 2.33 MB / 396.6 MB, free: 33.23 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.2574, allocations: 1.373 MB / 398 MB, free: 31.84 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.2576, allocations: 7.938 kB / 398 MB, free: 31.84 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0009903/0.2586, allocations: 458 kB / 398.5 MB, free: 31.39 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0004604/0.2591, allocations: 291.1 kB / 398.7 MB, free: 31.11 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008987/0.26, allocations: 415.9 kB / 399.2 MB, free: 30.7 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0004274/0.2604, allocations: 0.5533 MB / 399.7 MB, free: 30.15 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.2606, allocations: 105.5 kB / 399.8 MB, free: 30.04 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.2608, allocations: 219 kB / 400 MB, free: 29.82 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.261, allocations: 235 kB / 400.3 MB, free: 29.59 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 4.284e-05/0.2611, allocations: 12 kB / 400.3 MB, free: 29.58 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002303/0.2613, allocations: 131.8 kB / 400.4 MB, free: 29.45 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.2615, allocations: 147.5 kB / 400.5 MB, free: 29.3 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2616, allocations: 198.6 kB / 400.7 MB, free: 29.11 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0004408/0.2621, allocations: 0.5782 MB / 401.3 MB, free: 28.53 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2621, allocations: 0 / 401.3 MB, free: 28.53 MB / 298.8 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2621, allocations: 0 / 401.3 MB, free: 28.53 MB / 298.8 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2621, allocations: 0 / 401.3 MB, free: 28.53 MB / 298.8 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.001097/0.2632, allocations: 0.9121 MB / 402.2 MB, free: 27.55 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2633, allocations: 12.03 kB / 402.2 MB, free: 27.54 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.238e-05/0.2634, allocations: 56.22 kB / 402.3 MB, free: 27.48 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/0.2639, allocations: 467.7 kB / 402.7 MB, free: 26.98 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.028e-05/0.2639, allocations: 12.38 kB / 402.8 MB, free: 26.97 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.2639, allocations: 20.12 kB / 402.8 MB, free: 26.95 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.2643, allocations: 248.4 kB / 403 MB, free: 26.69 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2643, allocations: 0 / 403 MB, free: 26.69 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.2643, allocations: 11.98 kB / 403 MB, free: 26.68 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.2644, allocations: 4 kB / 403 MB, free: 26.68 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002245/0.2646, allocations: 123.9 kB / 403.2 MB, free: 26.55 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008052/0.2654, allocations: 0.6793 MB / 403.8 MB, free: 25.82 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.2658, allocations: 222.8 kB / 404.1 MB, free: 25.6 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.266, allocations: 99.2 kB / 404.1 MB, free: 25.5 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.266, allocations: 4 kB / 404.2 MB, free: 25.5 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.2663, allocations: 181.1 kB / 404.3 MB, free: 25.31 MB / 298.8 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.2663, allocations: 0 / 404.3 MB, free: 25.31 MB / 298.8 MB Notification: Performance of matching and sorting (n=24): time 0.0006685/0.267, allocations: 408.7 kB / 404.7 MB, free: 24.9 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.716e-05/0.2671, allocations: 132.5 kB / 404.9 MB, free: 24.74 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.2677, allocations: 0.7176 MB / 405.6 MB, free: 24.02 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.2677, allocations: 37.7 kB / 405.6 MB, free: 23.97 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.2679, allocations: 240.5 kB / 405.8 MB, free: 23.73 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/0.2679, allocations: 63.2 kB / 405.9 MB, free: 23.67 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.131e-05/0.268, allocations: 57.69 kB / 406 MB, free: 23.61 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.2682, allocations: 366.8 kB / 406.3 MB, free: 23.24 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.2683, allocations: 76.23 kB / 406.4 MB, free: 23.17 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.2685, allocations: 203 kB / 406.6 MB, free: 22.92 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003802/0.2689, allocations: 269.1 kB / 406.9 MB, free: 22.62 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.2689, allocations: 0 / 406.9 MB, free: 22.62 MB / 298.8 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004551/0.2694, allocations: 332.7 kB / 407.2 MB, free: 22.29 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.2694, allocations: 4 kB / 407.2 MB, free: 22.29 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.2694, allocations: 4 kB / 407.2 MB, free: 22.28 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.2695, allocations: 4 kB / 407.2 MB, free: 22.28 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.2696, allocations: 35.92 kB / 407.2 MB, free: 22.24 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.2697, allocations: 7.984 kB / 407.2 MB, free: 22.23 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.2698, allocations: 36 kB / 407.3 MB, free: 22.2 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.2699, allocations: 15.98 kB / 407.3 MB, free: 22.18 MB / 298.8 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.0003089/0.2702, allocations: 247.2 kB / 407.5 MB, free: 21.93 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.437e-05/0.2702, allocations: 55.33 kB / 407.6 MB, free: 21.88 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.2704, allocations: 56.88 kB / 407.6 MB, free: 21.82 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.2704, allocations: 7.938 kB / 407.6 MB, free: 21.82 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.2704, allocations: 0 / 407.6 MB, free: 21.82 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2704, allocations: 0 / 407.6 MB, free: 21.82 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.2708, allocations: 413.1 kB / 408.1 MB, free: 21.36 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2708, allocations: 0 / 408.1 MB, free: 21.36 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-05/0.2709, allocations: 19.98 kB / 408.1 MB, free: 21.34 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2709, allocations: 0 / 408.1 MB, free: 21.34 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.2709, allocations: 7.984 kB / 408.1 MB, free: 21.34 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.2709, allocations: 0 / 408.1 MB, free: 21.34 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2709, allocations: 8 kB / 408.1 MB, free: 21.33 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009915/0.2719, allocations: 1.1 MB / 409.2 MB, free: 20.17 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.272, allocations: 128.4 kB / 409.3 MB, free: 20.02 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/0.2721, allocations: 8 kB / 409.3 MB, free: 20.02 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.2722, allocations: 19.98 kB / 409.3 MB, free: 20 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.978e-05/0.2723, allocations: 19.91 kB / 409.4 MB, free: 19.98 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.2723, allocations: 15.94 kB / 409.4 MB, free: 19.96 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0004763/0.2728, allocations: 0.5144 MB / 409.9 MB, free: 19.45 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2728, allocations: 0 / 409.9 MB, free: 19.45 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0004889/0.2733, allocations: 107.8 kB / 410 MB, free: 19.34 MB / 298.8 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.001072/0.2744, allocations: 459.5 kB / 410.4 MB, free: 18.91 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.2748, allocations: 227.6 kB / 410.7 MB, free: 18.69 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.2748, allocations: 3.984 kB / 410.7 MB, free: 18.69 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.275, allocations: 107.9 kB / 410.8 MB, free: 18.58 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005289/0.2756, allocations: 108 kB / 410.9 MB, free: 18.47 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.2767, allocations: 1.146 MB / 412 MB, free: 17.29 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.277, allocations: 0.8704 MB / 412.9 MB, free: 16.39 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.2772, allocations: 79.5 kB / 413 MB, free: 16.32 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.76e-05/0.2773, allocations: 43.42 kB / 413 MB, free: 16.27 MB / 298.8 MB Notification: Performance of SimCode: time 2.41e-07/0.2773, allocations: 0 / 413 MB, free: 16.27 MB / 298.8 MB Notification: Performance of Templates: time 0.009978/0.2873, allocations: 6.276 MB / 419.3 MB, free: 10.01 MB / 298.8 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)