Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr DeltaRobot_DeltaRobot.Tests.Switch2_test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008652/0.0008652, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009184/0.0009184, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9414/0.9414, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.01707/0.01707, allocations: 4.101 MB / 264.4 MB, free: 8.922 MB / 250.7 MB " [Timeout remaining time 180] Using package DeltaRobot with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 282.1 MB, free: 7.211 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.047e-05/1.194e-05, allocations: 2.312 kB / 282.1 MB, free: 7.207 MB / 266.7 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.002688/0.0027, allocations: 3.153 MB / 285.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.005663, allocations: 3.198 MB / 288.4 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.005766, allocations: 8 kB / 288.4 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004527/0.006219, allocations: 255 kB / 288.7 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1099/0.1162, allocations: 0.8139 MB / 289.5 MB, free: 19.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.1165, allocations: 113.6 kB / 289.6 MB, free: 19.91 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000968/0.1174, allocations: 0.8739 MB / 290.5 MB, free: 19.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003562/0.1178, allocations: 280.8 kB / 290.8 MB, free: 19.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005523/0.1184, allocations: 480.8 kB / 291.2 MB, free: 19.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004419/0.1188, allocations: 387.6 kB / 291.6 MB, free: 19.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.64e-05/0.1189, allocations: 63.28 kB / 291.7 MB, free: 19.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001233/0.1201, allocations: 0.8342 MB / 292.5 MB, free: 19.62 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.1204, allocations: 372.2 kB / 292.9 MB, free: 19.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003007/0.1207, allocations: 287.5 kB / 293.1 MB, free: 19.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.1222, allocations: 1.272 MB / 294.4 MB, free: 19.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1222, allocations: 1.031 kB / 294.4 MB, free: 19.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1222, allocations: 0.8125 kB / 294.4 MB, free: 19.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.1222, allocations: 0 / 294.4 MB, free: 19.43 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001518/0.1237, allocations: 1.153 MB / 295.6 MB, free: 18.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.1237, allocations: 10.75 kB / 295.6 MB, free: 18.78 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005208/0.1243, allocations: 168.6 kB / 295.7 MB, free: 18.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.1248, allocations: 0.5311 MB / 296.3 MB, free: 18.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.125, allocations: 0.6471 MB / 296.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.62e-05/0.1251, allocations: 39.84 kB / 297 MB, free: 17.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005532/0.1256, allocations: 0.5145 MB / 297.5 MB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1256, allocations: 3.375 kB / 297.5 MB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.1257, allocations: 14.42 kB / 297.5 MB, free: 17.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.1257, allocations: 8.344 kB / 297.5 MB, free: 17.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002674/0.126, allocations: 163.7 kB / 297.7 MB, free: 17.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009584/0.1269, allocations: 0.8451 MB / 298.5 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.127, allocations: 120.3 kB / 298.6 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.599e-05/0.1271, allocations: 61.12 kB / 298.7 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.1271, allocations: 3.375 kB / 298.7 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00019/0.1273, allocations: 153.5 kB / 298.8 MB, free: 16.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.223e-06/0.1273, allocations: 0 / 298.8 MB, free: 16.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003319/0.1277, allocations: 212 kB / 299 MB, free: 16.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.1277, allocations: 161.1 kB / 299.2 MB, free: 16.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004933/0.1282, allocations: 0.6482 MB / 299.8 MB, free: 16.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.963e-05/0.1282, allocations: 28.42 kB / 299.9 MB, free: 16.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1283, allocations: 272.2 kB / 300.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.1284, allocations: 50.12 kB / 300.2 MB, free: 16.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-05/0.1284, allocations: 37.83 kB / 300.2 MB, free: 16.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.713e-05/0.1285, allocations: 313.5 kB / 300.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.495e-05/0.1286, allocations: 58.31 kB / 300.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1287, allocations: 212.8 kB / 300.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.1288, allocations: 136.3 kB / 300.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1289, allocations: 0 / 300.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002598/0.1291, allocations: 197.5 kB / 301.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.1291, allocations: 5.5 kB / 301.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1291, allocations: 1.375 kB / 301.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.1291, allocations: 6.062 kB / 301.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1293, allocations: 56.17 kB / 301.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.878e-06/0.1293, allocations: 1.922 kB / 301.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.1296, allocations: 47.75 kB / 301.2 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.1296, allocations: 7.406 kB / 301.2 MB, free: 15.48 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001109/0.1297, allocations: 126.7 kB / 301.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.487e-05/0.1298, allocations: 39.25 kB / 301.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.828e-05/0.1298, allocations: 64.48 kB / 301.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1298, allocations: 5.312 kB / 301.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.1299, allocations: 0 / 301.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1299, allocations: 0 / 301.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.1301, allocations: 283.1 kB / 301.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1301, allocations: 0 / 301.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.1303, allocations: 45.59 kB / 301.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1303, allocations: 1.375 kB / 301.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.1303, allocations: 13.91 kB / 301.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1303, allocations: 1.375 kB / 301.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1303, allocations: 0 / 301.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.1305, allocations: 190.6 kB / 302 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.1306, allocations: 56.02 kB / 302.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.1307, allocations: 2.625 kB / 302.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.1308, allocations: 46.56 kB / 302.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.131, allocations: 75.89 kB / 302.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.131, allocations: 14.53 kB / 302.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002621/0.1313, allocations: 305.9 kB / 302.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1313, allocations: 3.938 kB / 302.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006146/0.1319, allocations: 281.1 kB / 302.8 MB, free: 14.97 MB / 266.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: 2 ($whenCondition1,switch2.count) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005093/0.1324, allocations: 371.4 kB / 303.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002454/0.1326, allocations: 144.2 kB / 303.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.1326, allocations: 10.69 kB / 303.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.1327, allocations: 88.48 kB / 303.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004843/0.1332, allocations: 269.3 kB / 303.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.1345, allocations: 1.249 MB / 304.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.741e-05/0.1346, allocations: 201 kB / 305.1 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001784/0.1348, allocations: 65.45 kB / 305.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003856/0.1352, allocations: 208.9 kB / 305.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1352, allocations: 4 kB / 305.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01464/0.1498, allocations: 16.44 MB / 321.8 MB, free: 13.88 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile [Timeout 660] (rm -f DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; mkfifo DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; head -c 1048576 < DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe >> ../files/DeltaRobot_DeltaRobot.Tests.Switch2_test.sim & ./DeltaRobot_DeltaRobot.Tests.Switch2_test -abortSlowSimulation -alarm=240 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7757437438704073]