Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.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.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001284/0.001284, allocations: 192.3 kB / 16.25 MB, free: 6.617 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.376/1.376, allocations: 205.1 MB / 222.1 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05481/0.05481, allocations: 10.74 MB / 280.2 MB, free: 10.66 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.001404/0.001404, allocations: 71.78 kB / 340 MB, free: 23.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1239, allocations: 49.01 MB / 389.1 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003715/0.1277, allocations: 2.01 MB / 391.1 MB, free: 4.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.1296, allocations: 1.1 MB / 392.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.1298, allocations: 3.938 kB / 392.2 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008819/0.1307, allocations: 307.4 kB / 392.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004546/0.1311, allocations: 199.4 kB / 392.7 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006918/0.1318, allocations: 247.6 kB / 392.9 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004005/0.1322, allocations: 343.2 kB / 393.2 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.1324, allocations: 48.3 kB / 393.3 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.1326, allocations: 143.5 kB / 393.4 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.1328, allocations: 151.4 kB / 393.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.1329, allocations: 20 kB / 393.6 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.133, allocations: 91.88 kB / 393.7 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001269/0.1332, allocations: 91.73 kB / 393.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.1333, allocations: 135.2 kB / 393.9 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.1338, allocations: 359 kB / 394.3 MB, free: 1.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.1338, allocations: 3.984 kB / 394.3 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1338, allocations: 0 / 394.3 MB, free: 1.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1338, allocations: 0 / 394.3 MB, free: 1.348 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001019/0.1348, allocations: 0.6649 MB / 394.9 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.1349, allocations: 15.89 kB / 394.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.135, allocations: 36.47 kB / 395 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.1355, allocations: 338.3 kB / 395.3 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.882e-05/0.1355, allocations: 8.375 kB / 395.3 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.722e-05/0.1355, allocations: 12.12 kB / 395.3 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.1359, allocations: 134.8 kB / 395.5 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1359, allocations: 0 / 395.5 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.1359, allocations: 0 / 395.5 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.1359, allocations: 11.94 kB / 395.5 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.1361, allocations: 52.05 kB / 395.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007746/0.1369, allocations: 476.3 kB / 396 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.1373, allocations: 138.7 kB / 396.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.1374, allocations: 48.83 kB / 396.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.1374, allocations: 3.938 kB / 396.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003064/0.1378, allocations: 119.3 kB / 396.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.084e-06/0.1378, allocations: 0 / 396.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006308/0.1384, allocations: 237.3 kB / 396.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.1385, allocations: 106.8 kB / 396.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.1391, allocations: 469.7 kB / 397.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.1391, allocations: 29.7 kB / 397.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1393, allocations: 168.3 kB / 397.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.224e-05/0.1394, allocations: 43.53 kB / 397.3 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.506e-05/0.1394, allocations: 45.7 kB / 397.4 MB, free: 14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.1396, allocations: 338.8 kB / 397.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.1398, allocations: 47.97 kB / 397.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.1399, allocations: 122.5 kB / 397.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.1402, allocations: 137.9 kB / 398 MB, free: 13.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1402, allocations: 0 / 398 MB, free: 13.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003556/0.1406, allocations: 213 kB / 398.2 MB, free: 13.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.1406, allocations: 7.938 kB / 398.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.1406, allocations: 4 kB / 398.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1406, allocations: 0 / 398.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.1408, allocations: 23.98 kB / 398.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.1408, allocations: 7.938 kB / 398.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.1409, allocations: 23.98 kB / 398.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.1409, allocations: 8 kB / 398.3 MB, free: 13.01 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 (flipFlopSR.y1,$PRE.flipFlopSR.y1,flipFlopSR.y2,$PRE.flipFlopSR.y2,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * 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.0001911/0.1412, allocations: 176.1 kB / 398.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.406e-05/0.1412, allocations: 31.56 kB / 398.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.532e-05/0.1413, allocations: 38.98 kB / 398.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1413, allocations: 0 / 398.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.1413, allocations: 0 / 398.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.1413, allocations: 0 / 398.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003351/0.1417, allocations: 301.4 kB / 398.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1417, allocations: 4 kB / 398.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.706e-05/0.1417, allocations: 11.94 kB / 398.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1417, allocations: 3.938 kB / 398.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.1418, allocations: 4 kB / 398.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1418, allocations: 0 / 398.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1418, allocations: 0 / 398.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/0.1422, allocations: 216.6 kB / 399.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.392e-05/0.1423, allocations: 116.6 kB / 399.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.1423, allocations: 11.98 kB / 399.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.141e-05/0.1424, allocations: 8 kB / 399.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.783e-05/0.1425, allocations: 15.92 kB / 399.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.1425, allocations: 12.05 kB / 399.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003537/0.1429, allocations: 347.1 kB / 399.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1429, allocations: 0 / 399.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.1432, allocations: 59.89 kB / 399.6 MB, free: 11.59 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: 11 ($whenCondition3,$whenCondition2,$whenCondition1,flipFlopSR.y1,flipFlopSR.y2,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001094/0.1443, allocations: 423.2 kB / 400 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.1446, allocations: 131.9 kB / 400.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1447, allocations: 3.938 kB / 400.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.1448, allocations: 67.89 kB / 400.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.1453, allocations: 82.39 kB / 400.3 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009148/0.1462, allocations: 0.5671 MB / 400.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.1466, allocations: 0.7831 MB / 401.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001306/0.1467, allocations: 46.25 kB / 401.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.63e-05/0.1468, allocations: 31.42 kB / 401.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1468, allocations: 0 / 401.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of Templates: time 0.008759/0.1555, allocations: 3.981 MB / 405.7 MB, free: 5.539 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)