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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001176/0.001177, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08804/0.08804, allocations: 10.73 MB / 281.1 MB, free: 10.58 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.0005299/0.00053, allocations: 12 kB / 341.7 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1316, allocations: 50.01 MB / 391.7 MB, free: 5.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.002732/0.1344, allocations: 1.89 MB / 393.6 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.1366, allocations: 1.252 MB / 394.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.1368, allocations: 7.938 kB / 394.8 MB, free: 2.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.1378, allocations: 419 kB / 395.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005031/0.1383, allocations: 267.4 kB / 395.5 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009746/0.1393, allocations: 379.1 kB / 395.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004729/0.1398, allocations: 351.3 kB / 396.2 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.14, allocations: 96.3 kB / 396.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.1403, allocations: 203.2 kB / 396.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.1405, allocations: 203.2 kB / 396.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.404e-05/0.1406, allocations: 12 kB / 396.7 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002267/0.1408, allocations: 107.8 kB / 396.8 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.141, allocations: 131.5 kB / 397 MB, free: 416 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.538e-05/0.1411, allocations: 97.45 kB / 397.1 MB, free: 312 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005097/0.1416, allocations: 451.1 kB / 397.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1416, allocations: 0 / 397.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1416, allocations: 4 kB / 397.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1416, allocations: 0 / 397.5 MB, free: 15.86 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.001268/0.1429, allocations: 0.8267 MB / 398.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.143, allocations: 8.031 kB / 398.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.143, allocations: 50.55 kB / 398.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.43e-05/0.1431, allocations: 59.25 kB / 398.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006707/0.1438, allocations: 443 kB / 398.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/0.1439, allocations: 12 kB / 398.9 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.1439, allocations: 19.98 kB / 398.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.1443, allocations: 248.4 kB / 399.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.1443, allocations: 4 kB / 399.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.1444, allocations: 7.984 kB / 399.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.1444, allocations: 11.92 kB / 399.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.1447, allocations: 119.9 kB / 399.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.1458, allocations: 0.6794 MB / 400 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004571/0.1462, allocations: 218.9 kB / 400.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.1463, allocations: 4.344 kB / 400.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003254/0.1466, allocations: 175.1 kB / 400.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.1466, allocations: 4 kB / 400.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007797/0.1474, allocations: 401.3 kB / 400.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1475, allocations: 136.5 kB / 400.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007691/0.1483, allocations: 0.7098 MB / 401.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1483, allocations: 37.69 kB / 401.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.1485, allocations: 252.4 kB / 401.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.504e-05/0.1486, allocations: 55.27 kB / 401.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.1486, allocations: 12 kB / 402 MB, free: 11.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.1488, allocations: 370.8 kB / 402.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.1489, allocations: 68.25 kB / 402.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.1492, allocations: 199.1 kB / 402.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000205/0.1494, allocations: 103.9 kB / 402.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1494, allocations: 0 / 402.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005274/0.15, allocations: 320.6 kB / 403 MB, free: 10.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.15, allocations: 11.95 kB / 403 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.15, allocations: 256 / 403 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.15, allocations: 11.98 kB / 403 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.1502, allocations: 43.92 kB / 403.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1502, allocations: 4 kB / 403.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.1504, allocations: 31.83 kB / 403.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.1504, allocations: 8 kB / 403.1 MB, free: 9.926 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],$whenCondition4,$PRE.booleanConstant2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.booleanConstant1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.booleanConstant.combiTimeTable.nextTimeEvent,$whenCondition1,booleanConstant2.combiTimeTable.nextTimeEvent,$PRE.booleanConstant2.combiTimeTable.nextTimeEventScaled,booleanConstant2.combiTimeTable.nextTimeEventScaled,or_gate.u[2],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 (34): * Single equations (assignments): 33 * 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.0003573/0.1508, allocations: 250.4 kB / 403.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.1509, allocations: 51.34 kB / 403.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.151, allocations: 60.83 kB / 403.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.151, allocations: 0 / 403.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.151, allocations: 3.938 kB / 403.5 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.151, allocations: 3.984 kB / 403.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004252/0.1515, allocations: 413.2 kB / 403.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1515, allocations: 128 / 403.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.973e-05/0.1515, allocations: 16 kB / 403.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1515, allocations: 0 / 403.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1516, allocations: 11.98 kB / 403.9 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1516, allocations: 3.953 kB / 403.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1516, allocations: 4 kB / 403.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005781/0.1522, allocations: 352.2 kB / 404.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.1523, allocations: 148.3 kB / 404.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.1524, allocations: 8 kB / 404.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.1525, allocations: 15.98 kB / 404.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.521e-05/0.1526, allocations: 27.92 kB / 404.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.1526, allocations: 11.98 kB / 404.5 MB, free: 8.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006226/0.1533, allocations: 0.5027 MB / 405 MB, free: 7.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1533, allocations: 4 kB / 405 MB, free: 7.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004493/0.1537, allocations: 99.89 kB / 405.1 MB, free: 7.875 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 (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.001992/0.1557, allocations: 1.242 MB / 406.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005282/0.1563, allocations: 227.6 kB / 406.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1563, allocations: 3.938 kB / 406.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.1565, allocations: 116.3 kB / 406.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000536/0.1571, allocations: 110.6 kB / 406.7 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004915/0.162, allocations: 4.387 MB / 411.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.1625, allocations: 0.8701 MB / 412 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.1628, allocations: 87.58 kB / 412.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.163, allocations: 163.4 kB / 412.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of SimCode: time 1.143e-06/0.163, allocations: 4 kB / 412.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1893, allocations: 10.86 MB / 423.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002643/0.1897, allocations: 288.4 kB / 423.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/2.424, allocations: 0 / 423.4 MB, free: 5.465 MB / 318.1 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) Environment - environmentSimulation: