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.006896/0.006896, allocations: 103.4 kB / 15.74 MB, free: 6.008 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.001179/0.00118, allocations: 198.4 kB / 16.68 MB, free: 5.93 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.611/1.611, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1112/0.1112, allocations: 10.73 MB / 280.6 MB, free: 1.289 MB / 222.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.001416/0.001416, allocations: 68.38 kB / 390.8 MB, free: 46.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1374, allocations: 49.03 MB / 439.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.00353/0.141, allocations: 2.278 MB / 442.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002264/0.1433, allocations: 1.373 MB / 443.5 MB, free: 256 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.1435, allocations: 11.94 kB / 443.5 MB, free: 244 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001274/0.1448, allocations: 493.4 kB / 444 MB, free: 15.76 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0007085/0.1455, allocations: 310.9 kB / 444.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.1468, allocations: 438.6 kB / 444.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007245/0.1475, allocations: 0.5572 MB / 445.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.1478, allocations: 117.6 kB / 445.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1481, allocations: 243.1 kB / 445.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003044/0.1484, allocations: 239.1 kB / 445.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.416e-05/0.1485, allocations: 28 kB / 445.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003598/0.1489, allocations: 159.8 kB / 446.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.1491, allocations: 159.5 kB / 446.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.1493, allocations: 210.6 kB / 446.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007902/0.1501, allocations: 0.6034 MB / 447 MB, free: 12.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.024e-05/0.1502, allocations: 4 kB / 447 MB, free: 12.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.1502, allocations: 3.938 kB / 447 MB, free: 12.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1502, allocations: 0 / 447 MB, free: 12.72 MB / 334.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.001559/0.1518, allocations: 0.9114 MB / 447.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.1518, allocations: 15.97 kB / 448 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.1519, allocations: 56.28 kB / 448 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006616/0.1526, allocations: 463.8 kB / 448.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.1527, allocations: 16.36 kB / 448.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.1527, allocations: 20.12 kB / 448.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.1531, allocations: 236.7 kB / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.1532, allocations: 0 / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/0.1532, allocations: 15.98 kB / 448.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.763e-05/0.1532, allocations: 4 kB / 448.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002728/0.1535, allocations: 127.9 kB / 448.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.1546, allocations: 0.6715 MB / 449.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005076/0.1551, allocations: 228.8 kB / 449.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.1553, allocations: 88.81 kB / 449.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.1554, allocations: 3.984 kB / 449.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003613/0.1557, allocations: 179 kB / 450 MB, free: 9.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.003e-06/0.1557, allocations: 0 / 450 MB, free: 9.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008636/0.1566, allocations: 408.5 kB / 450.4 MB, free: 9.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.1567, allocations: 136.5 kB / 450.6 MB, free: 8.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008943/0.1576, allocations: 0.7059 MB / 451.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.1577, allocations: 41.69 kB / 451.3 MB, free: 8.184 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.1579, allocations: 248.5 kB / 451.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.132e-05/0.158, allocations: 55.2 kB / 451.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.1581, allocations: 65.69 kB / 451.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1583, allocations: 366.8 kB / 452 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.1585, allocations: 72.23 kB / 452.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.1587, allocations: 211.1 kB / 452.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004719/0.1592, allocations: 277.1 kB / 452.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1592, allocations: 0 / 452.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005791/0.1598, allocations: 320.7 kB / 452.9 MB, free: 6.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1598, allocations: 4 kB / 452.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.1599, allocations: 4 kB / 452.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.1599, allocations: 8.25 kB / 452.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.1601, allocations: 39.92 kB / 453 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1601, allocations: 7.938 kB / 453 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.1603, allocations: 31.73 kB / 453 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.891e-05/0.1603, allocations: 16 kB / 453 MB, free: 6.379 MB / 334.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.0003471/0.1607, allocations: 258.6 kB / 453.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.1607, allocations: 55.33 kB / 453.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1608, allocations: 52.89 kB / 453.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.1609, allocations: 7.984 kB / 453.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.1609, allocations: 0 / 453.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1609, allocations: 3.938 kB / 453.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.1614, allocations: 409.2 kB / 453.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1614, allocations: 0 / 453.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.516e-05/0.1614, allocations: 15.98 kB / 453.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1614, allocations: 4 kB / 453.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.1615, allocations: 8 kB / 453.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1615, allocations: 0 / 453.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1615, allocations: 0 / 453.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005878/0.1621, allocations: 360.9 kB / 454.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1622, allocations: 128.4 kB / 454.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.1622, allocations: 12 kB / 454.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.1624, allocations: 15.98 kB / 454.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.1625, allocations: 19.97 kB / 454.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.1625, allocations: 12 kB / 454.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005941/0.1631, allocations: 0.5105 MB / 454.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1631, allocations: 0 / 454.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000438/0.1635, allocations: 95.92 kB / 454.9 MB, free: 4.344 MB / 334.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.001166/0.1647, allocations: 470.2 kB / 455.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005393/0.1653, allocations: 224 kB / 455.6 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1653, allocations: 0 / 455.6 MB, free: 3.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.1655, allocations: 123.6 kB / 455.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000583/0.1661, allocations: 126.8 kB / 455.9 MB, free: 3.535 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.1675, allocations: 0.8181 MB / 456.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000511/0.168, allocations: 0.8584 MB / 457.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/0.1683, allocations: 83.48 kB / 457.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1684, allocations: 47.42 kB / 457.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1684, allocations: 3.938 kB / 457.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of Templates: time 0.01335/0.1818, allocations: 6.466 MB / 464.1 MB, free: 11.23 MB / 350.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)