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.001701/0.001701, allocations: 108 kB / 16.41 MB, free: 6.492 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.001503/0.001503, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.383/1.383, 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.1081/0.1081, allocations: 10.74 MB / 281.3 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.001468/0.001468, allocations: 65.34 kB / 391.5 MB, free: 46.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08196, allocations: 49.04 MB / 440.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002926/0.08492, allocations: 2.266 MB / 442.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.08681, allocations: 1.373 MB / 444.2 MB, free: 152 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.08699, allocations: 7.938 kB / 444.2 MB, free: 144 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.0881, allocations: 493.5 kB / 444.7 MB, free: 15.66 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.0006389/0.08875, allocations: 310.9 kB / 445 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.08987, allocations: 445.8 kB / 445.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006422/0.09053, allocations: 0.5572 MB / 446 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002369/0.09077, allocations: 113.6 kB / 446.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003764/0.09116, allocations: 239.1 kB / 446.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003508/0.09152, allocations: 243 kB / 446.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.657e-05/0.0916, allocations: 28 kB / 446.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003599/0.09197, allocations: 163.8 kB / 446.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.09216, allocations: 155.5 kB / 446.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.09241, allocations: 210.6 kB / 447.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007124/0.09313, allocations: 0.6034 MB / 447.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.09315, allocations: 4 kB / 447.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.09316, allocations: 3.938 kB / 447.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.09318, allocations: 0 / 447.7 MB, free: 12.62 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.001503/0.09469, allocations: 0.9198 MB / 448.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.09474, allocations: 12.03 kB / 448.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.09487, allocations: 52.28 kB / 448.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005999/0.09548, allocations: 467.8 kB / 449.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.09551, allocations: 12.36 kB / 449.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.09555, allocations: 20.12 kB / 449.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.09599, allocations: 240.7 kB / 449.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.09601, allocations: 0 / 449.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.09604, allocations: 8 kB / 449.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.09607, allocations: 8 kB / 449.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.09632, allocations: 127.9 kB / 449.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009523/0.09729, allocations: 0.6754 MB / 450.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004569/0.09776, allocations: 226.8 kB / 450.4 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.09793, allocations: 92.08 kB / 450.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.09796, allocations: 0 / 450.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003256/0.0983, allocations: 179 kB / 450.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.09831, allocations: 0 / 450.7 MB, free: 9.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007785/0.09909, allocations: 408.5 kB / 451.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.09919, allocations: 140.5 kB / 451.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007737/0.09997, allocations: 0.7059 MB / 452 MB, free: 8.125 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.1, allocations: 37.7 kB / 452 MB, free: 8.082 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.1002, allocations: 244.5 kB / 452.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.669e-05/0.1003, allocations: 63.19 kB / 452.3 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.1004, allocations: 65.69 kB / 452.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.1006, allocations: 370.8 kB / 452.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.1007, allocations: 68.25 kB / 452.8 MB, free: 7.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.101, allocations: 207 kB / 453 MB, free: 7.012 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004517/0.1014, allocations: 273.1 kB / 453.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.1015, allocations: 0 / 453.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005582/0.102, allocations: 320.7 kB / 453.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.102, allocations: 4 kB / 453.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1021, allocations: 4 kB / 453.6 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.1021, allocations: 4.25 kB / 453.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.1023, allocations: 47.91 kB / 453.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6e-05/0.1023, allocations: 7.938 kB / 453.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.1025, allocations: 31.73 kB / 453.7 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.1025, allocations: 16 kB / 453.7 MB, free: 6.277 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.0003158/0.1029, allocations: 258.6 kB / 453.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-05/0.1029, allocations: 55.34 kB / 454 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.46e-05/0.103, allocations: 52.88 kB / 454 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.1031, allocations: 4 kB / 454 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.1031, allocations: 0 / 454 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1031, allocations: 3.938 kB / 454 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.1035, allocations: 413.2 kB / 454.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1035, allocations: 0 / 454.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.728e-05/0.1035, allocations: 12 kB / 454.5 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1036, allocations: 4 kB / 454.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.1036, allocations: 11.98 kB / 454.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.1036, allocations: 0 / 454.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1036, allocations: 0 / 454.5 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005918/0.1042, allocations: 360.9 kB / 454.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.1043, allocations: 128.4 kB / 455 MB, free: 4.902 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.488e-05/0.1044, allocations: 4 kB / 455 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.1045, allocations: 19.98 kB / 455 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.1046, allocations: 19.97 kB / 455 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.1046, allocations: 19.98 kB / 455 MB, free: 4.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005532/0.1052, allocations: 0.5066 MB / 455.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1052, allocations: 4 kB / 455.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.1056, allocations: 95.92 kB / 455.6 MB, free: 4.238 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.001074/0.1067, allocations: 460.2 kB / 456.1 MB, free: 3.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000493/0.1072, allocations: 228 kB / 456.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.1072, allocations: 3.906 kB / 456.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.1074, allocations: 127.6 kB / 456.4 MB, free: 3.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005821/0.108, allocations: 118.6 kB / 456.5 MB, free: 3.434 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.1094, allocations: 0.8667 MB / 457.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.1099, allocations: 0.8623 MB / 458.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.11, allocations: 47.42 kB / 458.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.11, allocations: 0 / 458.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of Templates: time 0.01129/0.1213, allocations: 7.286 MB / 465.6 MB, free: 10.32 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)