Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.JSONTest.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.001395/0.001395, allocations: 78.09 kB / 19.76 MB, free: 1.875 MB / 14.72 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.001458/0.001458, allocations: 162.7 kB / 23.01 MB, free: 4.602 MB / 14.72 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 1.547/1.547, allocations: 177.2 MB / 203.4 MB, free: 8.891 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01957/0.01957, allocations: 2.255 MB / 262 MB, free: 14.41 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/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(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 67.91 kB / 386.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1104, allocations: 54.34 MB / 440.6 MB, free: 11.28 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00347/0.1138, allocations: 1.716 MB / 442.4 MB, free: 9.547 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003108/0.1169, allocations: 1.714 MB / 444.1 MB, free: 7.824 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.575e-05/0.117, allocations: 0 / 444.1 MB, free: 7.824 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:86:3-121:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.1174, allocations: 35.78 kB / 444.1 MB, free: 7.789 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004659/0.1179, allocations: 127.4 kB / 444.2 MB, free: 7.664 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.1181, allocations: 83.78 kB / 444.3 MB, free: 7.582 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001429/0.1183, allocations: 87.77 kB / 444.4 MB, free: 7.496 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.091e-05/0.1184, allocations: 8.219 kB / 444.4 MB, free: 7.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.487e-05/0.1185, allocations: 43.8 kB / 444.4 MB, free: 7.441 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.1186, allocations: 35.83 kB / 444.5 MB, free: 7.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.1186, allocations: 8 kB / 444.5 MB, free: 7.398 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003064/0.1189, allocations: 183.8 kB / 444.7 MB, free: 7.219 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.433e-05/0.119, allocations: 19.92 kB / 444.7 MB, free: 7.199 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.699e-05/0.1191, allocations: 27.86 kB / 444.7 MB, free: 7.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003675/0.1194, allocations: 231.2 kB / 444.9 MB, free: 6.945 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1194, allocations: 0 / 444.9 MB, free: 6.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1194, allocations: 3.938 kB / 444.9 MB, free: 6.941 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1194, allocations: 4 kB / 444.9 MB, free: 6.938 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006374/0.1201, allocations: 383.2 kB / 445.3 MB, free: 6.527 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.1201, allocations: 8.031 kB / 445.3 MB, free: 6.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.1202, allocations: 12.84 kB / 445.3 MB, free: 6.508 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.1204, allocations: 142.3 kB / 445.5 MB, free: 6.344 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1205, allocations: 384 / 445.5 MB, free: 6.344 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.426e-05/0.1205, allocations: 12.12 kB / 445.5 MB, free: 6.332 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002616/0.1207, allocations: 129 kB / 445.6 MB, free: 6.188 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1208, allocations: 4 kB / 445.6 MB, free: 6.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.1208, allocations: 4 kB / 445.6 MB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1208, allocations: 0 / 445.6 MB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.1209, allocations: 85.61 kB / 445.7 MB, free: 6.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004031/0.1213, allocations: 241.3 kB / 445.9 MB, free: 5.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.1216, allocations: 126.9 kB / 446.1 MB, free: 5.672 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.1218, allocations: 83.38 kB / 446.2 MB, free: 5.578 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.615e-05/0.1218, allocations: 0 / 446.2 MB, free: 5.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002558/0.122, allocations: 172.5 kB / 446.3 MB, free: 5.379 MB / 414.1 MB Notification: Performance of pre-optimization done (n=11): time 2.915e-06/0.122, allocations: 3.984 kB / 446.3 MB, free: 5.375 MB / 414.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005313/0.1226, allocations: 290.6 kB / 446.6 MB, free: 5.066 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.1227, allocations: 110.8 kB / 446.7 MB, free: 4.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.1228, allocations: 137.7 kB / 446.8 MB, free: 4.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.1228, allocations: 37.64 kB / 446.9 MB, free: 4.746 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.1229, allocations: 88.08 kB / 447 MB, free: 4.656 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.163e-05/0.1229, allocations: 35.94 kB / 447 MB, free: 4.621 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.123, allocations: 21.72 kB / 447 MB, free: 4.594 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1231, allocations: 330.8 kB / 447.4 MB, free: 4.262 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.1232, allocations: 69.67 kB / 447.4 MB, free: 4.188 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.1234, allocations: 87.39 kB / 447.5 MB, free: 4.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.1236, allocations: 153 kB / 447.7 MB, free: 3.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1236, allocations: 0 / 447.7 MB, free: 3.922 MB / 414.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003502/0.1239, allocations: 224.9 kB / 447.9 MB, free: 3.684 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.559e-05/0.124, allocations: 45.12 kB / 447.9 MB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.124, allocations: 0 / 447.9 MB, free: 3.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.124, allocations: 8 kB / 447.9 MB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.651e-05/0.1241, allocations: 11.94 kB / 447.9 MB, free: 3.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1241, allocations: 0 / 447.9 MB, free: 3.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.505e-05/0.1242, allocations: 19.88 kB / 448 MB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.1242, allocations: 0 / 448 MB, free: 3.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001422/0.1243, allocations: 163.5 kB / 448.1 MB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.701e-05/0.1243, allocations: 7.953 kB / 448.1 MB, free: 3.414 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.1244, allocations: 12.44 kB / 448.1 MB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1244, allocations: 3.938 kB / 448.1 MB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1244, allocations: 0 / 448.1 MB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1244, allocations: 8 kB / 448.1 MB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001498/0.1245, allocations: 137.2 kB / 448.3 MB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1245, allocations: 0 / 448.3 MB, free: 3.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-05/0.1246, allocations: 8 kB / 448.3 MB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1246, allocations: 0 / 448.3 MB, free: 3.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.1246, allocations: 8 kB / 448.3 MB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.1246, allocations: 3.938 kB / 448.3 MB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1246, allocations: 3.984 kB / 448.3 MB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.125, allocations: 285.2 kB / 448.6 MB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.273e-05/0.125, allocations: 15.88 kB / 448.6 MB, free: 2.871 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.1251, allocations: 12 kB / 448.6 MB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.984e-05/0.1251, allocations: 4 kB / 448.6 MB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.1252, allocations: 7.984 kB / 448.6 MB, free: 2.848 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.1252, allocations: 4 kB / 448.6 MB, free: 2.844 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1253, allocations: 110.1 kB / 448.7 MB, free: 2.738 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1253, allocations: 0 / 448.7 MB, free: 2.738 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1256, allocations: 75.8 kB / 448.8 MB, free: 2.664 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001124/0.1267, allocations: 400.6 kB / 449.2 MB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003753/0.1271, allocations: 230.7 kB / 449.4 MB, free: 2.109 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1271, allocations: 0 / 449.4 MB, free: 2.109 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.1273, allocations: 145 kB / 449.6 MB, free: 1.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.1275, allocations: 16 kB / 449.6 MB, free: 1.934 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005488/0.1281, allocations: 272.3 kB / 449.8 MB, free: 1.633 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.845e-05/0.1282, allocations: 85.12 kB / 449.9 MB, free: 1.527 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.72e-05/0.1282, allocations: 7.984 kB / 449.9 MB, free: 1.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.1282, allocations: 12.5 kB / 450 MB, free: 1.508 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1282, allocations: 4 kB / 450 MB, free: 1.504 MB / 414.1 MB Notification: Performance of Templates: time 0.006414/0.1347, allocations: 2.576 MB / 452.5 MB, free: 14.94 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile [Timeout 660] (rm -f ExternData_ExternData.Examples.JSONTest.pipe ; mkfifo ExternData_ExternData.Examples.JSONTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.JSONTest.pipe >> ../files/ExternData_ExternData.Examples.JSONTest.sim & ./ExternData_ExternData.Examples.JSONTest -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.5806685159914196] Failed to read output from testmodel.py, exit status != 0: 0.14315274101682007 0.15794251 0.035321597 Calling exit ...