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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.005741/0.005741, allocations: 169.8 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05776/0.05776, allocations: 10.74 MB / 26.59 MB, free: 2.238 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.737/1.737, allocations: 205.4 MB / 235.2 MB, free: 188 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009319/0.0009317, allocations: 84.47 kB / 285.9 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 8 kB / 346.5 MB, free: 5.074 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1162, allocations: 50 MB / 396.5 MB, free: 2.984 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4565, allocations: 81.69 MB / 478.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.4567, allocations: 99.23 kB / 478.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03405/0.4908, allocations: 13.96 MB / 492.3 MB, free: 2.867 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4908, allocations: 0 / 492.3 MB, free: 2.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.309e-05/0.4909, allocations: 23.94 kB / 492.3 MB, free: 2.844 MB / 346.7 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.001498/0.4924, allocations: 0.86 MB / 493.1 MB, free: 1.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4925, allocations: 8.031 kB / 493.1 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.157e-05/0.4926, allocations: 60.09 kB / 493.2 MB, free: 1.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.4928, allocations: 63.25 kB / 493.3 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009502/0.4937, allocations: 497.6 kB / 493.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4938, allocations: 15.11 kB / 493.8 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.4938, allocations: 29.28 kB / 493.8 MB, free: 1.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.4942, allocations: 274.1 kB / 494.1 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.4943, allocations: 0 / 494.1 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.4943, allocations: 15.86 kB / 494.1 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.4943, allocations: 4 kB / 494.1 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.4946, allocations: 140.7 kB / 494.2 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.4957, allocations: 0.7016 MB / 494.9 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.4961, allocations: 228.8 kB / 495.1 MB, free: 200 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.4961, allocations: 4 kB / 495.1 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.4965, allocations: 208 kB / 495.3 MB, free: 12 kB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 1.833e-06/0.4965, allocations: 0 / 495.3 MB, free: 12 kB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009032/0.4974, allocations: 438.5 kB / 495.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.4975, allocations: 132.5 kB / 495.9 MB, free: 15.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008787/0.4984, allocations: 0.642 MB / 496.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.4984, allocations: 40.56 kB / 496.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.4986, allocations: 239.1 kB / 496.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.4987, allocations: 74.58 kB / 496.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.235e-05/0.4987, allocations: 3.875 kB / 496.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4989, allocations: 376.6 kB / 497.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.4991, allocations: 75.55 kB / 497.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.4994, allocations: 223.3 kB / 497.6 MB, free: 14.13 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.4996, allocations: 106.5 kB / 497.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4996, allocations: 0 / 497.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006675/0.5003, allocations: 356.2 kB / 498 MB, free: 13.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.5003, allocations: 4 kB / 498 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.5003, allocations: 4 kB / 498 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.5004, allocations: 15.94 kB / 498 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.5005, allocations: 38.92 kB / 498.1 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.5006, allocations: 4 kB / 498.1 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002355/0.5008, allocations: 39.17 kB / 498.1 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-05/0.5009, allocations: 14.5 kB / 498.1 MB, free: 13.68 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(fixed = true ) "output vector" type: Boolean [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 31 ($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],$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition1,and_gate.u[2],booleanConstant2.combiTimeTable.nextTimeEvent,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled,and_gate.u[3],booleanConstant1.combiTimeTable.nextTimeEvent,$PRE.booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,and_gate.u[4],booleanConstant.combiTimeTable.nextTimeEvent,$PRE.booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant.combiTimeTable.nextTimeEventScaled,not_gate_C.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003508/0.5012, allocations: 250 kB / 498.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-05/0.5013, allocations: 51.34 kB / 498.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006902/0.502, allocations: 386.5 kB / 498.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.502, allocations: 7.984 kB / 498.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.502, allocations: 3.953 kB / 498.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5021, allocations: 0 / 498.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000531/0.5026, allocations: 445.2 kB / 499.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5026, allocations: 4 kB / 499.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.5027, allocations: 23.92 kB / 499.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.5027, allocations: 0 / 499.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.5027, allocations: 11.98 kB / 499.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.5027, allocations: 4 kB / 499.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5027, allocations: 0 / 499.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.5034, allocations: 393 kB / 499.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.5037, allocations: 160.4 kB / 499.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.506e-05/0.5037, allocations: 19.91 kB / 499.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.5039, allocations: 19.98 kB / 499.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.358e-05/0.504, allocations: 23.97 kB / 499.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.504, allocations: 8 kB / 499.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007464/0.5048, allocations: 0.5144 MB / 0.4887 GB, free: 11.36 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5048, allocations: 0 / 0.4887 GB, free: 11.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005391/0.5053, allocations: 119.9 kB / 0.4888 GB, free: 11.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,and_gate.u[2],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.y[1],xor_gate.y[1],not_gate_C.y[1]) * Number of discrete states: 6 (booleanConstant.combiTimeTable.nextTimeEvent,booleanConstant1.combiTimeTable.nextTimeEvent,booleanConstant2.combiTimeTable.nextTimeEvent,booleanConstant.combiTimeTable.nextTimeEventScaled,booleanConstant1.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 19 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002133/0.5075, allocations: 1.295 MB / 0.4901 GB, free: 9.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006183/0.5081, allocations: 263.7 kB / 0.4903 GB, free: 9.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5081, allocations: 0 / 0.4903 GB, free: 9.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002453/0.5084, allocations: 144.4 kB / 0.4905 GB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.5089, allocations: 101.6 kB / 0.4905 GB, free: 9.473 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/0.5154, allocations: 4.962 MB / 0.4954 GB, free: 4.391 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000969/0.5164, allocations: 0.8707 MB / 0.4962 GB, free: 3.496 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004537/0.5169, allocations: 103.5 kB / 0.4963 GB, free: 3.395 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003935/0.5173, allocations: 179.4 kB / 0.4965 GB, free: 3.223 MB / 362.7 MB Notification: Performance of SimCode: time 2.104e-06/0.5173, allocations: 0 / 0.4965 GB, free: 3.223 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.5491, allocations: 11.57 MB / 0.5078 GB, free: 7.703 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002613/0.5494, allocations: 266.2 kB / 0.5081 GB, free: 7.344 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.362/2.911, allocations: 8.062 kB / 0.5081 GB, free: 7.336 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_basicLogicOperations.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations.pipe 2>&1)