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.001083/0.001083, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.001068/0.001069, allocations: 194 kB / 16.25 MB, free: 6.629 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.298/1.298, allocations: 205.1 MB / 222.1 MB, free: 4.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1071/0.1071, allocations: 10.74 MB / 280.2 MB, free: 10.65 MB / 238.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.00124/0.00124, allocations: 67.91 kB / 340 MB, free: 23.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.08039, allocations: 49.03 MB / 389.1 MB, free: 6.582 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003698/0.08413, allocations: 2.329 MB / 391.4 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.08615, allocations: 1.361 MB / 392.8 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.08628, allocations: 3.938 kB / 392.8 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008925/0.0872, allocations: 466.9 kB / 393.2 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000503/0.08771, allocations: 291.2 kB / 393.5 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008838/0.08861, allocations: 419.2 kB / 393.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004795/0.08911, allocations: 0.5611 MB / 394.5 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.0893, allocations: 105.5 kB / 394.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.08955, allocations: 251 kB / 394.8 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.08978, allocations: 251 kB / 395.1 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.47e-05/0.08984, allocations: 28 kB / 395.1 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.09006, allocations: 155.8 kB / 395.2 MB, free: 376 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.09021, allocations: 155.5 kB / 395.4 MB, free: 220 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.09038, allocations: 214.6 kB / 395.6 MB, free: 4 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.09091, allocations: 0.5881 MB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09092, allocations: 0 / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09093, allocations: 4 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.09095, allocations: 0 / 396.2 MB, free: 15.41 MB / 302.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.001126/0.09208, allocations: 0.9121 MB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.09212, allocations: 8.031 kB / 397.1 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.09222, allocations: 60.27 kB / 397.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005271/0.09275, allocations: 467.7 kB / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.09278, allocations: 24.36 kB / 397.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.09282, allocations: 24.06 kB / 397.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004059/0.09324, allocations: 240.5 kB / 397.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.09326, allocations: 0 / 397.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.09329, allocations: 7.984 kB / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.09331, allocations: 4 kB / 397.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002498/0.09357, allocations: 127.9 kB / 398.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000885/0.09447, allocations: 0.6754 MB / 398.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/0.09493, allocations: 226.8 kB / 399 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.0951, allocations: 84.81 kB / 399 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.09514, allocations: 0 / 399 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003307/0.09547, allocations: 183.1 kB / 399.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.09549, allocations: 3.938 kB / 399.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007354/0.09623, allocations: 405.3 kB / 399.6 MB, free: 11.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.207e-05/0.09632, allocations: 136.5 kB / 399.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.09706, allocations: 0.7098 MB / 400.5 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.0971, allocations: 41.67 kB / 400.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.09727, allocations: 244.5 kB / 400.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.125e-05/0.09733, allocations: 63.25 kB / 400.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.016e-05/0.09742, allocations: 65.69 kB / 400.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.09756, allocations: 366.8 kB / 401.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.09772, allocations: 68.23 kB / 401.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.09796, allocations: 203 kB / 401.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.09838, allocations: 277.1 kB / 401.8 MB, free: 9.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.09839, allocations: 0 / 401.8 MB, free: 9.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000509/0.09891, allocations: 328.7 kB / 402.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.09893, allocations: 4 kB / 402.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.09894, allocations: 4.25 kB / 402.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.09896, allocations: 8 kB / 402.1 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.09912, allocations: 39.92 kB / 402.1 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.09913, allocations: 7.938 kB / 402.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.09929, allocations: 27.83 kB / 402.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.09932, allocations: 12 kB / 402.2 MB, free: 9.059 MB / 302.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.0002669/0.0996, allocations: 246.5 kB / 402.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.061e-05/0.09967, allocations: 51.34 kB / 402.5 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.75e-05/0.09977, allocations: 56.88 kB / 402.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.09978, allocations: 7.984 kB / 402.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.09979, allocations: 0 / 402.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.0998, allocations: 0 / 402.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003593/0.1002, allocations: 413.1 kB / 402.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1002, allocations: 4 kB / 402.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.599e-05/0.1002, allocations: 15.98 kB / 403 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1002, allocations: 0 / 403 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.1003, allocations: 8.125 kB / 403 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1003, allocations: 4 kB / 403 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1003, allocations: 0 / 403 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.1008, allocations: 368.1 kB / 403.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.067e-05/0.1009, allocations: 136.4 kB / 403.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.101, allocations: 11.94 kB / 403.5 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.1011, allocations: 11.98 kB / 403.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.1012, allocations: 19.97 kB / 403.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1012, allocations: 12 kB / 403.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005202/0.1018, allocations: 0.5144 MB / 404 MB, free: 7.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1018, allocations: 0 / 404 MB, free: 7.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003726/0.1021, allocations: 91.89 kB / 404.1 MB, free: 7.023 MB / 302.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.0009455/0.1031, allocations: 473 kB / 404.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005233/0.1036, allocations: 259.5 kB / 404.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1036, allocations: 0 / 404.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.1038, allocations: 112.4 kB / 404.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.1044, allocations: 131.9 kB / 405.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.1056, allocations: 0.9397 MB / 406 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.106, allocations: 0.8622 MB / 406.9 MB, free: 4.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002089/0.1062, allocations: 91.72 kB / 407 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.534e-05/0.1063, allocations: 39.42 kB / 407 MB, free: 4.191 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1063, allocations: 0 / 407 MB, free: 4.191 MB / 302.1 MB Notification: Performance of Templates: time 0.01068/0.1169, allocations: 6.302 MB / 413.3 MB, free: 13.9 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)