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.001136/0.001136, allocations: 99.92 kB / 16.35 MB, free: 5.824 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.001204/0.001204, allocations: 193 kB / 17.29 MB, free: 5.48 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.291/1.291, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07807/0.07807, allocations: 10.73 MB / 281.3 MB, free: 1.305 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.001415/0.001415, allocations: 72.11 kB / 342 MB, free: 4.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2405, allocations: 49 MB / 391 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003688/0.2443, allocations: 2.292 MB / 393.3 MB, free: 48.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.2465, allocations: 1.38 MB / 394.7 MB, free: 47.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.2467, allocations: 9.438 kB / 394.7 MB, free: 47.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.2478, allocations: 481.8 kB / 395.1 MB, free: 47.26 MB / 318.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.0006211/0.2484, allocations: 309 kB / 395.4 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.2495, allocations: 442.6 kB / 395.9 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006591/0.2502, allocations: 0.5643 MB / 396.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.2504, allocations: 99.28 kB / 396.5 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.2507, allocations: 238.4 kB / 396.8 MB, free: 46.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.251, allocations: 247.6 kB / 397 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.512e-05/0.251, allocations: 27.41 kB / 397 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003353/0.2514, allocations: 163.2 kB / 397.2 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.2515, allocations: 155.1 kB / 397.3 MB, free: 46.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001753/0.2517, allocations: 212.3 kB / 397.6 MB, free: 46.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006808/0.2524, allocations: 0.6026 MB / 398.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2524, allocations: 0.7031 kB / 398.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2524, allocations: 1 kB / 398.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.2525, allocations: 0 / 398.2 MB, free: 45.92 MB / 318.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.001139/0.2536, allocations: 0.917 MB / 399.1 MB, free: 45.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2536, allocations: 10.84 kB / 399.1 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.153e-05/0.2537, allocations: 53.06 kB / 399.1 MB, free: 45.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000518/0.2543, allocations: 467.8 kB / 399.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.2543, allocations: 20.61 kB / 399.6 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.2543, allocations: 23.72 kB / 399.6 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.2547, allocations: 239.3 kB / 399.9 MB, free: 44.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.2547, allocations: 5.516 kB / 399.9 MB, free: 44.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.2548, allocations: 9.516 kB / 399.9 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.2548, allocations: 4.219 kB / 399.9 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000241/0.255, allocations: 126.8 kB / 400 MB, free: 44.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008608/0.2559, allocations: 0.6707 MB / 400.7 MB, free: 43.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004341/0.2564, allocations: 224.9 kB / 400.9 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.2565, allocations: 87.22 kB / 401 MB, free: 43.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.2565, allocations: 7.297 kB / 401 MB, free: 43.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.2569, allocations: 184.3 kB / 401.2 MB, free: 43.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.823e-06/0.2569, allocations: 0 / 401.2 MB, free: 43.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007413/0.2576, allocations: 407.6 kB / 401.6 MB, free: 43.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.2577, allocations: 137.7 kB / 401.7 MB, free: 43.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007602/0.2584, allocations: 0.7066 MB / 402.4 MB, free: 42.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.2585, allocations: 42.25 kB / 402.5 MB, free: 42.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.2586, allocations: 238.2 kB / 402.7 MB, free: 42.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.2587, allocations: 61.06 kB / 402.7 MB, free: 42.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.664e-05/0.2588, allocations: 63.84 kB / 402.8 MB, free: 42.49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.2588, allocations: 370.4 kB / 403.2 MB, free: 42.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.259, allocations: 72.98 kB / 403.2 MB, free: 42.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.2592, allocations: 202 kB / 403.4 MB, free: 41.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.2596, allocations: 275.6 kB / 403.7 MB, free: 41.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2596, allocations: 0 / 403.7 MB, free: 41.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005314/0.2601, allocations: 327.5 kB / 404 MB, free: 41.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2602, allocations: 6.875 kB / 404 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2602, allocations: 2.969 kB / 404 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.2602, allocations: 4.062 kB / 404 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.2604, allocations: 45.27 kB / 404.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.2604, allocations: 3.688 kB / 404.1 MB, free: 41.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.2605, allocations: 36.36 kB / 404.1 MB, free: 41.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.2606, allocations: 14.44 kB / 404.1 MB, free: 41.5 MB / 318.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.0002485/0.2608, allocations: 248 kB / 404.4 MB, free: 41.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/0.2609, allocations: 56.5 kB / 404.4 MB, free: 41.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.809e-05/0.261, allocations: 54.09 kB / 404.5 MB, free: 41.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.261, allocations: 7.625 kB / 404.5 MB, free: 41.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.261, allocations: 3.984 kB / 404.5 MB, free: 41.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.261, allocations: 0 / 404.5 MB, free: 41.23 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/0.2614, allocations: 413.1 kB / 404.9 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2614, allocations: 0 / 404.9 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.607e-05/0.2615, allocations: 14.3 kB / 404.9 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.2615, allocations: 1.219 kB / 404.9 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.089e-05/0.2615, allocations: 7.938 kB / 404.9 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.2615, allocations: 5.031 kB / 404.9 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2615, allocations: 0 / 404.9 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005408/0.2621, allocations: 367.9 kB / 405.3 MB, free: 40.65 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.2622, allocations: 122.5 kB / 405.4 MB, free: 40.53 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/0.2622, allocations: 12.14 kB / 405.4 MB, free: 40.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001174/0.2624, allocations: 14.92 kB / 405.4 MB, free: 40.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.882e-05/0.2624, allocations: 25.06 kB / 405.5 MB, free: 40.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.2625, allocations: 17.69 kB / 405.5 MB, free: 40.49 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004883/0.263, allocations: 0.5084 MB / 406 MB, free: 40.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.263, allocations: 0 / 406 MB, free: 40.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000441/0.2634, allocations: 102.7 kB / 406.1 MB, free: 40.19 MB / 318.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.001034/0.2645, allocations: 459.6 kB / 406.5 MB, free: 39.97 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004608/0.2649, allocations: 237.4 kB / 406.8 MB, free: 39.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2649, allocations: 0 / 406.8 MB, free: 39.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.2651, allocations: 116.6 kB / 406.9 MB, free: 39.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.2657, allocations: 118.3 kB / 407 MB, free: 39.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.2667, allocations: 0.8164 MB / 407.8 MB, free: 39.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.267, allocations: 0.8537 MB / 408.7 MB, free: 38.49 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.2672, allocations: 95.75 kB / 408.8 MB, free: 38.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.107e-05/0.2673, allocations: 45.7 kB / 408.8 MB, free: 38.43 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2673, allocations: 0 / 408.8 MB, free: 38.43 MB / 318.1 MB Notification: Performance of Templates: time 0.009597/0.2769, allocations: 6.409 MB / 415.2 MB, free: 32.09 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)