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.002213/0.002213, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08456/0.08456, allocations: 10.66 MB / 23.92 MB, free: 1.375 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.826/1.826, allocations: 205.2 MB / 232.1 MB, free: 12.76 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009071/0.0009069, allocations: 93.14 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.876e-05/4.909e-05, allocations: 4 kB / 340.6 MB, free: 3.504 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3212, allocations: 49.98 MB / 390.6 MB, free: 35.71 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1107/0.432, allocations: 81.62 MB / 472.2 MB, free: 1.973 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.4323, allocations: 87.94 kB / 472.3 MB, free: 1.887 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.04102/0.4733, allocations: 13.91 MB / 486.2 MB, free: 3.941 MB / 362.8 MB Notification: Performance of FrontEnd: time 3.897e-06/0.4734, allocations: 4 kB / 486.2 MB, free: 3.938 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0001143/0.4736, allocations: 12 kB / 486.2 MB, free: 3.926 MB / 362.8 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.001963/0.4755, allocations: 0.7697 MB / 487 MB, free: 3.09 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.4756, allocations: 8.031 kB / 487 MB, free: 3.082 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001365/0.4758, allocations: 50.55 kB / 487 MB, free: 3.023 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.4761, allocations: 67.28 kB / 487.1 MB, free: 2.957 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.4774, allocations: 0.491 MB / 487.6 MB, free: 2.426 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.4775, allocations: 12 kB / 487.6 MB, free: 2.414 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.4776, allocations: 16 kB / 487.6 MB, free: 2.398 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006834/0.4782, allocations: 277 kB / 487.9 MB, free: 2.094 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.4783, allocations: 0 / 487.9 MB, free: 2.094 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.4783, allocations: 4 kB / 487.9 MB, free: 2.09 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.057e-05/0.4784, allocations: 7.984 kB / 487.9 MB, free: 2.082 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.4787, allocations: 131.7 kB / 488 MB, free: 1.953 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.4803, allocations: 0.707 MB / 488.7 MB, free: 1.195 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.4808, allocations: 212.8 kB / 488.9 MB, free: 0.9805 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.4809, allocations: 84.84 kB / 489 MB, free: 0.8945 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.481, allocations: 3.938 kB / 489 MB, free: 0.8906 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000386/0.4814, allocations: 194.3 kB / 489.2 MB, free: 0.6875 MB / 362.8 MB Notification: Performance of pre-optimization done (n=27): time 3.266e-06/0.4814, allocations: 4 kB / 489.2 MB, free: 0.6836 MB / 362.8 MB Notification: Performance of matching and sorting (n=27): time 0.0008115/0.4822, allocations: 339 kB / 489.6 MB, free: 356 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.4823, allocations: 140.5 kB / 489.7 MB, free: 184 kB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/0.4834, allocations: 0.6375 MB / 490.3 MB, free: 15.53 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.4835, allocations: 37.69 kB / 490.4 MB, free: 15.48 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.4837, allocations: 244.7 kB / 490.6 MB, free: 15.24 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.484e-05/0.4838, allocations: 67.16 kB / 490.7 MB, free: 15.18 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.572e-05/0.4838, allocations: 4 kB / 490.7 MB, free: 15.18 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.484, allocations: 378.7 kB / 491 MB, free: 14.8 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.4842, allocations: 68.58 kB / 491.1 MB, free: 14.73 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.4844, allocations: 217.5 kB / 491.3 MB, free: 14.45 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.4846, allocations: 103.8 kB / 491.4 MB, free: 14.35 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4846, allocations: 0 / 491.4 MB, free: 14.35 MB / 378.8 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006279/0.4853, allocations: 340.8 kB / 491.8 MB, free: 14.01 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.4853, allocations: 14.3 kB / 491.8 MB, free: 14 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.4853, allocations: 0 / 491.8 MB, free: 14 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.4854, allocations: 8 kB / 491.8 MB, free: 13.99 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001891/0.4856, allocations: 43.91 kB / 491.8 MB, free: 13.95 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.4856, allocations: 12 kB / 491.8 MB, free: 13.94 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.4859, allocations: 32.02 kB / 491.9 MB, free: 13.91 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.4859, allocations: 16 kB / 491.9 MB, free: 13.89 MB / 378.8 MB Warning: Assuming fixed start value for the following 4 variables: xor_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] or_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] not_gate.y[1]:DISCRETE(fixed = false ) "output vector" type: Boolean [1] and_gate.y[1]:DISCRETE(fixed = false ) "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 () * 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.0002125/0.4861, allocations: 157.3 kB / 492 MB, free: 13.73 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.4862, allocations: 51.34 kB / 492.1 MB, free: 13.68 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006706/0.4869, allocations: 375.5 kB / 492.5 MB, free: 13.31 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.487, allocations: 0 / 492.5 MB, free: 13.31 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.487, allocations: 4 kB / 492.5 MB, free: 13.3 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.487, allocations: 0 / 492.5 MB, free: 13.3 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005302/0.4875, allocations: 445.2 kB / 492.9 MB, free: 12.82 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.4875, allocations: 0 / 492.9 MB, free: 12.82 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.146e-05/0.4876, allocations: 23.98 kB / 492.9 MB, free: 12.8 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.4876, allocations: 0 / 492.9 MB, free: 12.8 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.4877, allocations: 11.98 kB / 492.9 MB, free: 12.79 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.4877, allocations: 3.953 kB / 492.9 MB, free: 12.78 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4877, allocations: 8 kB / 492.9 MB, free: 12.77 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005987/0.4883, allocations: 377 kB / 493.3 MB, free: 12.39 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/0.4885, allocations: 160.4 kB / 493.5 MB, free: 12.21 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.796e-05/0.4886, allocations: 11.98 kB / 493.5 MB, free: 12.2 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.4888, allocations: 19.98 kB / 493.5 MB, free: 12.18 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.079e-05/0.4889, allocations: 27.92 kB / 493.5 MB, free: 12.15 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.4889, allocations: 15.98 kB / 493.5 MB, free: 12.14 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0007041/0.4896, allocations: 0.4976 MB / 494 MB, free: 11.64 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4896, allocations: 0 / 494 MB, free: 11.64 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0005514/0.4902, allocations: 127.8 kB / 494.2 MB, free: 11.52 MB / 378.8 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) * 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.001876/0.4921, allocations: 1.246 MB / 495.4 MB, free: 10.32 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0004789/0.4925, allocations: 251.7 kB / 495.7 MB, free: 10.07 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4926, allocations: 0 / 495.7 MB, free: 10.07 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.4928, allocations: 128.4 kB / 495.8 MB, free: 9.945 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005306/0.4933, allocations: 110.2 kB / 495.9 MB, free: 9.844 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.495, allocations: 0.8288 MB / 496.7 MB, free: 8.977 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.4956, allocations: 0.8746 MB / 497.6 MB, free: 8.074 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002691/0.4958, allocations: 95.41 kB / 497.7 MB, free: 7.977 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.4961, allocations: 175.4 kB / 497.9 MB, free: 7.805 MB / 378.8 MB Notification: Performance of SimCode: time 8.31e-07/0.4961, allocations: 0 / 497.9 MB, free: 7.805 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.266/0.7621, allocations: 11.4 MB / 0.4973 GB, free: 99.86 MB / 378.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.7624, allocations: 236.7 kB / 0.4975 GB, free: 99.55 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/3.024, allocations: 0 / 0.4975 GB, free: 99.55 MB / 378.8 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)