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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001268/0.001268, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001518/0.001518, allocations: 195.6 kB / 16.14 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1986/0.1986, allocations: 11.15 MB / 301.1 MB, free: 1.391 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 67.89 kB / 363.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 51.99 MB / 415.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003493/0.1114, allocations: 2.321 MB / 418.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.1138, allocations: 1.454 MB / 419.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.1139, allocations: 7.938 kB / 419.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.115, allocations: 470.9 kB / 420.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004899/0.1155, allocations: 283.2 kB / 420.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009522/0.1165, allocations: 438.7 kB / 420.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004803/0.1169, allocations: 0.5493 MB / 421.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.1172, allocations: 109.7 kB / 421.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002789/0.1175, allocations: 207 kB / 421.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.1178, allocations: 239 kB / 421.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.561e-05/0.1178, allocations: 12 kB / 421.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002927/0.1181, allocations: 131.8 kB / 422.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1183, allocations: 143.5 kB / 422.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.1186, allocations: 198.6 kB / 422.4 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006671/0.1192, allocations: 0.5764 MB / 423 MB, free: 180 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1192, allocations: 0 / 423 MB, free: 180 kB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1193, allocations: 0 / 423 MB, free: 180 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1193, allocations: 0 / 423 MB, free: 180 kB / 350.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.2209/0.3402, allocations: 0.9044 MB / 423.9 MB, free: 41.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.3403, allocations: 11.45 kB / 423.9 MB, free: 41.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.3404, allocations: 54.5 kB / 423.9 MB, free: 41.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006159/0.3411, allocations: 475.1 kB / 424.4 MB, free: 41.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.3411, allocations: 11.94 kB / 424.4 MB, free: 41.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.3412, allocations: 18.41 kB / 424.4 MB, free: 41.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.3417, allocations: 246.8 kB / 424.7 MB, free: 41.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.3417, allocations: 0 / 424.7 MB, free: 41.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.3418, allocations: 12.02 kB / 424.7 MB, free: 41.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.976e-05/0.3418, allocations: 3.156 kB / 424.7 MB, free: 41.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.3421, allocations: 132.6 kB / 424.8 MB, free: 41.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.3433, allocations: 0.6676 MB / 425.5 MB, free: 40.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.3438, allocations: 225.7 kB / 425.7 MB, free: 40.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.344, allocations: 88.5 kB / 425.8 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.3441, allocations: 3.5 kB / 425.8 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000345/0.3444, allocations: 181.9 kB / 426 MB, free: 40.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.916e-06/0.3444, allocations: 1.781 kB / 426 MB, free: 40.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007845/0.3452, allocations: 410.2 kB / 426.4 MB, free: 40.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.3453, allocations: 137.6 kB / 426.5 MB, free: 40.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007517/0.3461, allocations: 0.7112 MB / 427.2 MB, free: 40.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.3461, allocations: 33.89 kB / 427.3 MB, free: 40.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.3462, allocations: 244.6 kB / 427.5 MB, free: 40.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.715e-05/0.3463, allocations: 68.84 kB / 427.6 MB, free: 40.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.647e-05/0.3464, allocations: 60.42 kB / 427.6 MB, free: 40.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.855e-05/0.3465, allocations: 368.7 kB / 428 MB, free: 39.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.3466, allocations: 71.3 kB / 428.1 MB, free: 39.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.3468, allocations: 203.4 kB / 428.2 MB, free: 39.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003919/0.3472, allocations: 265.2 kB / 428.5 MB, free: 39.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3472, allocations: 4.516 kB / 428.5 MB, free: 39.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004732/0.3477, allocations: 329.7 kB / 428.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.3477, allocations: 5.688 kB / 428.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3478, allocations: 3.5 kB / 428.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3478, allocations: 7.719 kB / 428.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.3479, allocations: 40.25 kB / 428.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.348, allocations: 5.719 kB / 428.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001619/0.3481, allocations: 39.8 kB / 428.9 MB, free: 39.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.3482, allocations: 7.906 kB / 428.9 MB, free: 39.59 MB / 350.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.0002841/0.3484, allocations: 241.2 kB / 429.2 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.448e-05/0.3485, allocations: 59.73 kB / 429.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.581e-05/0.3486, allocations: 60.27 kB / 429.3 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3486, allocations: 4.438 kB / 429.3 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3486, allocations: 0.6875 kB / 429.3 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3487, allocations: 1.594 kB / 429.3 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003303/0.349, allocations: 407.9 kB / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.349, allocations: 0 / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.292e-05/0.3491, allocations: 18.84 kB / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3491, allocations: 3.688 kB / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.3491, allocations: 6.891 kB / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3491, allocations: 3.188 kB / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3491, allocations: 0.7031 kB / 429.7 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/0.3496, allocations: 359.4 kB / 430.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.798e-05/0.3497, allocations: 135.6 kB / 430.2 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.918e-05/0.3497, allocations: 10.45 kB / 430.2 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.3499, allocations: 13.84 kB / 430.2 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.965e-05/0.3499, allocations: 15.69 kB / 430.3 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.35, allocations: 19.72 kB / 430.3 MB, free: 38.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004544/0.3504, allocations: 0.5067 MB / 430.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3504, allocations: 3.344 kB / 430.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.3508, allocations: 108 kB / 430.9 MB, free: 38.56 MB / 350.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.001098/0.3519, allocations: 458.2 kB / 431.3 MB, free: 38.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004451/0.3524, allocations: 222.6 kB / 431.6 MB, free: 38.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3524, allocations: 2.344 kB / 431.6 MB, free: 38.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.3526, allocations: 119 kB / 431.7 MB, free: 38.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005464/0.3532, allocations: 113.2 kB / 431.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.3543, allocations: 0.9436 MB / 432.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.3546, allocations: 0.8566 MB / 433.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000213/0.3548, allocations: 89.77 kB / 433.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3549, allocations: 42.48 kB / 433.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.355, allocations: 0 / 433.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of Templates: time 0.0109/0.3659, allocations: 6.099 MB / 439.8 MB, free: 36.52 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)