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.001417/0.001417, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001738/0.001738, allocations: 216.9 kB / 22.99 MB, free: 4.945 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.525/1.525, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.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.01512/0.01512, allocations: 3.273 MB / 316.5 MB, free: 15.61 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.002151/0.002151, allocations: 59.91 kB / 440.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09721/0.09936, allocations: 54.39 MB / 495.1 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00365/0.103, allocations: 1.698 MB / 496.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002923/0.1059, allocations: 1.71 MB / 498.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.246e-05/0.106, allocations: 4 kB / 498.5 MB, free: 1.516 MB / 350.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.0003621/0.1064, allocations: 35.78 kB / 498.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004459/0.1068, allocations: 127.4 kB / 498.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.1071, allocations: 83.78 kB / 498.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001703/0.1073, allocations: 91.77 kB / 498.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.258e-05/0.1074, allocations: 8.219 kB / 498.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.289e-05/0.1075, allocations: 43.78 kB / 498.9 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.1076, allocations: 35.86 kB / 499 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.205e-05/0.1077, allocations: 4 kB / 499 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003475/0.108, allocations: 191.8 kB / 499.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.46e-05/0.1081, allocations: 19.92 kB / 499.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.359e-05/0.1081, allocations: 27.81 kB / 499.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004357/0.1086, allocations: 223.3 kB / 499.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1086, allocations: 0 / 499.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1086, allocations: 0 / 499.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1086, allocations: 0 / 499.4 MB, free: 0.6367 MB / 350.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.0006874/0.1093, allocations: 395.2 kB / 499.8 MB, free: 220 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1093, allocations: 16.03 kB / 499.8 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.99e-05/0.1094, allocations: 8.891 kB / 499.8 MB, free: 196 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003202/0.1097, allocations: 145.5 kB / 500 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.1097, allocations: 384 / 500 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.1097, allocations: 16.06 kB / 500 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.11, allocations: 125.2 kB / 0.4884 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.11, allocations: 0 / 0.4884 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.11, allocations: 0 / 0.4884 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.11, allocations: 0 / 0.4884 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.1102, allocations: 93.59 kB / 0.4885 GB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.1106, allocations: 237.4 kB / 0.4887 GB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.1109, allocations: 122.9 kB / 0.4888 GB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.1111, allocations: 83.52 kB / 0.4889 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.1111, allocations: 0 / 0.4889 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.1114, allocations: 176.4 kB / 0.4891 GB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.1114, allocations: 0 / 0.4891 GB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005942/0.112, allocations: 302.5 kB / 0.4894 GB, free: 14.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.121e-05/0.1121, allocations: 106.8 kB / 0.4895 GB, free: 14.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.1122, allocations: 137.8 kB / 0.4896 GB, free: 14.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.1122, allocations: 29.7 kB / 0.4896 GB, free: 14.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.402e-05/0.1123, allocations: 92.12 kB / 0.4897 GB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.1123, allocations: 27.75 kB / 0.4897 GB, free: 14.32 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.762e-05/0.1124, allocations: 25.7 kB / 0.4898 GB, free: 14.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1126, allocations: 326.8 kB / 0.4901 GB, free: 13.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.1127, allocations: 65.69 kB / 0.4901 GB, free: 13.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.1128, allocations: 91.38 kB / 0.4902 GB, free: 13.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000234/0.1131, allocations: 161.2 kB / 0.4904 GB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1131, allocations: 0 / 0.4904 GB, free: 13.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0004039/0.1135, allocations: 228.9 kB / 0.4906 GB, free: 13.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.107e-05/0.1135, allocations: 37.7 kB / 0.4906 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1135, allocations: 0 / 0.4906 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1135, allocations: 3.938 kB / 0.4906 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.112e-05/0.1136, allocations: 11.98 kB / 0.4906 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.1136, allocations: 4 kB / 0.4906 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.197e-05/0.1137, allocations: 7.953 kB / 0.4907 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.1137, allocations: 8 kB / 0.4907 GB, free: 13.29 MB / 366.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.0001686/0.1139, allocations: 159.5 kB / 0.4908 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.1139, allocations: 15.94 kB / 0.4908 GB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.1139, allocations: 8.375 kB / 0.4908 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1139, allocations: 7.938 kB / 0.4908 GB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1139, allocations: 0 / 0.4908 GB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.114, allocations: 0 / 0.4908 GB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.1141, allocations: 129.2 kB / 0.491 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1141, allocations: 4 kB / 0.491 GB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.898e-05/0.1142, allocations: 19.92 kB / 0.491 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.1142, allocations: 4 kB / 0.491 GB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.1142, allocations: 4 kB / 0.491 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.1142, allocations: 4 kB / 0.491 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1142, allocations: 0 / 0.491 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.1147, allocations: 281.2 kB / 0.4913 GB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.1147, allocations: 11.89 kB / 0.4913 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.1147, allocations: 8 kB / 0.4913 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.104e-05/0.1148, allocations: 7.984 kB / 0.4913 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.1148, allocations: 0 / 0.4913 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.1148, allocations: 11.98 kB / 0.4913 GB, free: 12.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.775e-05/0.1149, allocations: 113.9 kB / 0.4914 GB, free: 12.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1149, allocations: 3.938 kB / 0.4914 GB, free: 12.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.1153, allocations: 75.73 kB / 0.4915 GB, free: 12.36 MB / 366.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.001242/0.1165, allocations: 399.3 kB / 0.4919 GB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.1169, allocations: 230.7 kB / 0.4921 GB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1169, allocations: 0 / 0.4921 GB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.1171, allocations: 141 kB / 0.4922 GB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.1174, allocations: 19.22 kB / 0.4922 GB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000597/0.1179, allocations: 278.3 kB / 0.4925 GB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.051e-05/0.118, allocations: 75.33 kB / 0.4926 GB, free: 11.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.1181, allocations: 19.42 kB / 0.4926 GB, free: 11.2 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1181, allocations: 0 / 0.4926 GB, free: 11.2 MB / 366.1 MB Notification: Performance of Templates: time 0.005537/0.1236, allocations: 2.62 MB / 0.4952 GB, free: 8.59 MB / 366.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 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.3483999078162014] Failed to read output from testmodel.py, exit status != 0: 0.13173718703910708 0.147882745 0.036044702000000005 Calling exit ...