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.001126/0.001126, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001123/0.001122, allocations: 192.9 kB / 16.13 MB, free: 6.699 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.599/1.599, allocations: 205.1 MB / 222 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09432/0.09432, allocations: 10.74 MB / 280.1 MB, free: 10.71 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.001193/0.001193, allocations: 68.17 kB / 339.9 MB, free: 23.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.119, allocations: 49.01 MB / 388.9 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.basicLogicOperations): time 0.003875/0.1229, allocations: 2.325 MB / 391.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002416/0.1253, allocations: 1.373 MB / 392.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.1255, allocations: 11.88 kB / 392.6 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.1266, allocations: 467 kB / 393 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005369/0.1271, allocations: 283.2 kB / 393.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.1282, allocations: 411.2 kB / 393.7 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005577/0.1288, allocations: 0.5571 MB / 394.3 MB, free: 1.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002769/0.1291, allocations: 101.5 kB / 394.4 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002881/0.1294, allocations: 215 kB / 394.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.1297, allocations: 235 kB / 394.8 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.921e-05/0.1297, allocations: 16 kB / 394.8 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002774/0.13, allocations: 127.8 kB / 395 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001569/0.1302, allocations: 147.5 kB / 395.1 MB, free: 448 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.1304, allocations: 194.6 kB / 395.3 MB, free: 252 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005564/0.1309, allocations: 0.5764 MB / 395.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.1309, allocations: 4 kB / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.31e-07/0.131, allocations: 0 / 395.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.131, allocations: 4 kB / 395.9 MB, free: 15.66 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.001335/0.1323, allocations: 0.9082 MB / 396.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1323, allocations: 8.031 kB / 396.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.1325, allocations: 56.28 kB / 396.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000528/0.133, allocations: 471.7 kB / 397.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.133, allocations: 12.38 kB / 397.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.1331, allocations: 28.11 kB / 397.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00047/0.1335, allocations: 240.5 kB / 397.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.1336, allocations: 0 / 397.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.1336, allocations: 4 kB / 397.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.1336, allocations: 7.938 kB / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002613/0.1339, allocations: 131.9 kB / 397.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008949/0.1348, allocations: 0.6754 MB / 398.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.1353, allocations: 230.8 kB / 398.6 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.1354, allocations: 84.8 kB / 398.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.1355, allocations: 4 kB / 398.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003203/0.1358, allocations: 175.1 kB / 398.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.855e-06/0.1358, allocations: 3.938 kB / 398.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007498/0.1366, allocations: 413.3 kB / 399.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.259e-05/0.1366, allocations: 136.5 kB / 399.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007736/0.1374, allocations: 0.7137 MB / 400.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.1375, allocations: 33.7 kB / 400.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.1376, allocations: 240.5 kB / 400.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.763e-05/0.1377, allocations: 71.23 kB / 400.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.177e-05/0.1378, allocations: 57.7 kB / 400.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.138, allocations: 370.8 kB / 400.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001651/0.1382, allocations: 72.23 kB / 401 MB, free: 10.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.1384, allocations: 199 kB / 401.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004566/0.1389, allocations: 285 kB / 401.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.1389, allocations: 0 / 401.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005501/0.1395, allocations: 320.7 kB / 401.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.1395, allocations: 7.984 kB / 401.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.1395, allocations: 4 kB / 401.8 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1395, allocations: 8.25 kB / 401.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.1397, allocations: 35.92 kB / 401.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.1397, allocations: 7.938 kB / 401.8 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.1399, allocations: 31.81 kB / 401.8 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.1399, allocations: 16 kB / 401.9 MB, free: 9.305 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],$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.0003574/0.1403, allocations: 238.7 kB / 402.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.514e-05/0.1404, allocations: 51.34 kB / 402.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.606e-05/0.1405, allocations: 60.81 kB / 402.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.1405, allocations: 4 kB / 402.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1405, allocations: 0 / 402.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1405, allocations: 3.984 kB / 402.2 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004035/0.1409, allocations: 409.1 kB / 402.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1409, allocations: 0 / 402.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.613e-05/0.141, allocations: 20 kB / 402.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.141, allocations: 0 / 402.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.141, allocations: 7.984 kB / 402.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.141, allocations: 0 / 402.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.141, allocations: 0 / 402.6 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005928/0.1416, allocations: 364.2 kB / 403 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.874e-05/0.1418, allocations: 132.4 kB / 403.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.011e-05/0.1418, allocations: 15.92 kB / 403.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.1419, allocations: 11.98 kB / 403.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/0.142, allocations: 15.98 kB / 403.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-05/0.1421, allocations: 15.98 kB / 403.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005779/0.1426, allocations: 0.5105 MB / 403.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1426, allocations: 0 / 403.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003835/0.143, allocations: 99.89 kB / 403.8 MB, free: 7.281 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 (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.0009752/0.144, allocations: 471.2 kB / 404.2 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004646/0.1445, allocations: 227.6 kB / 404.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1445, allocations: 0 / 404.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.1447, allocations: 111.9 kB / 404.6 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005548/0.1453, allocations: 123.5 kB / 404.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.1466, allocations: 0.941 MB / 405.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.147, allocations: 0.8587 MB / 406.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.1472, allocations: 83.48 kB / 406.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.1473, allocations: 43.42 kB / 406.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1473, allocations: 0 / 406.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of Templates: time 0.01228/0.1596, allocations: 6.102 MB / 412.7 MB, free: 14.4 MB / 318.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)