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.001409/0.00141, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07475/0.07475, allocations: 10.66 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.3 MB / 226.9 MB, free: 7.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 102.4 kB / 277.3 MB, free: 5.461 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.245e-05, allocations: 0 / 333.6 MB, free: 28.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1742, allocations: 50 MB / 383.6 MB, free: 10.3 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5248/0.6991, allocations: 81.25 MB / 464.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.6995, allocations: 84.55 kB / 465 MB, free: 3.391 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03919/0.7387, allocations: 13.81 MB / 478.8 MB, free: 7.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.7387, allocations: 4 kB / 478.8 MB, free: 7.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.842e-05/0.7388, allocations: 15.98 kB / 478.8 MB, free: 7.902 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.001178/0.7399, allocations: 0.7565 MB / 479.5 MB, free: 7.113 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.74, allocations: 12.03 kB / 479.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.7401, allocations: 59.3 kB / 479.6 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009089/0.7411, allocations: 497.8 kB / 480.1 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.7411, allocations: 15.48 kB / 480.1 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.7412, allocations: 15.94 kB / 480.1 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002294/0.7414, allocations: 109.8 kB / 480.2 MB, free: 6.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.7418, allocations: 258.2 kB / 480.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.7418, allocations: 0 / 480.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.7418, allocations: 3.188 kB / 480.5 MB, free: 6.242 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.7419, allocations: 11.95 kB / 480.5 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.7429, allocations: 0.6604 MB / 481.2 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.7432, allocations: 209.2 kB / 481.4 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.7433, allocations: 82.52 kB / 481.4 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.7434, allocations: 4 kB / 481.5 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003018/0.7437, allocations: 185 kB / 481.6 MB, free: 5.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 1.763e-06/0.7437, allocations: 0 / 481.6 MB, free: 5.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006367/0.7443, allocations: 322 kB / 481.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.7444, allocations: 143.9 kB / 482.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007589/0.7452, allocations: 0.6002 MB / 482.7 MB, free: 4.402 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.7453, allocations: 33.2 kB / 482.7 MB, free: 4.367 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.7455, allocations: 242 kB / 483 MB, free: 4.227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.7455, allocations: 65.28 kB / 483 MB, free: 4.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.7455, allocations: 0 / 483 MB, free: 4.172 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.7457, allocations: 375.5 kB / 483.4 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.7459, allocations: 67.45 kB / 483.5 MB, free: 3.773 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.7461, allocations: 212.9 kB / 483.7 MB, free: 3.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.7462, allocations: 90.45 kB / 483.7 MB, free: 3.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.7463, allocations: 0 / 483.7 MB, free: 3.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004566/0.7467, allocations: 303.2 kB / 484 MB, free: 3.234 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.7468, allocations: 12.06 kB / 484.1 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.7468, allocations: 4 kB / 484.1 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.7468, allocations: 11.88 kB / 484.1 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.747, allocations: 39.91 kB / 484.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.747, allocations: 11.95 kB / 484.1 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.7472, allocations: 23.83 kB / 484.1 MB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.7472, allocations: 15.62 kB / 484.2 MB, free: 3.121 MB / 346.7 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.0002011/0.7474, allocations: 150.7 kB / 484.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005005/0.7479, allocations: 327 kB / 484.6 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.363e-05/0.748, allocations: 55.25 kB / 484.7 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005828/0.7486, allocations: 347.2 kB / 485 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.7486, allocations: 4 kB / 485 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.7487, allocations: 0 / 485 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.7487, allocations: 3.984 kB / 485 MB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004639/0.7491, allocations: 399.3 kB / 485.4 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.7492, allocations: 0 / 485.4 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.923e-05/0.7492, allocations: 23.92 kB / 485.4 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.7492, allocations: 0 / 485.4 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.7493, allocations: 11.48 kB / 485.5 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.7493, allocations: 4 kB / 485.5 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.7493, allocations: 7.953 kB / 485.5 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005413/0.7498, allocations: 363.6 kB / 485.8 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001723/0.75, allocations: 157.9 kB / 486 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.932e-05/0.7501, allocations: 10.55 kB / 486 MB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.7503, allocations: 15.98 kB / 486 MB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.524e-05/0.7503, allocations: 18.97 kB / 486 MB, free: 1.477 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.7504, allocations: 27.06 kB / 486 MB, free: 1.453 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005322/0.7509, allocations: 472.6 kB / 486.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7509, allocations: 3.938 kB / 486.5 MB, free: 1.113 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004781/0.7514, allocations: 114.1 kB / 486.6 MB, free: 1.008 MB / 346.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) * 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.001732/0.7531, allocations: 1.198 MB / 487.8 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004039/0.7536, allocations: 230.3 kB / 488 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7536, allocations: 0 / 488 MB, free: 15.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.7538, allocations: 123.7 kB / 488.2 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/0.7543, allocations: 104.7 kB / 488.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.7557, allocations: 0.8076 MB / 489.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005598/0.7563, allocations: 0.8727 MB / 489.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.7566, allocations: 102.3 kB / 490 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.7568, allocations: 175.1 kB / 490.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.7568, allocations: 3.938 kB / 490.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.7907, allocations: 10.46 MB / 0.489 GB, free: 3.297 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/0.7911, allocations: 220.8 kB / 0.4892 GB, free: 3.008 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/3.117, allocations: 3.281 kB / 0.4892 GB, free: 3.008 MB / 362.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)