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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 193.8 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.0/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.0/package.mo): time 0.01732/0.01732, allocations: 3.216 MB / 309.5 MB, free: 5.383 MB / 238.1 MB
"
[Timeout remaining time 180]
Using package ExternData with version 3.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.0/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(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: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 67.88 kB / 431.5 MB, free: 19.62 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1136, allocations: 53.18 MB / 484.6 MB, free: 14.36 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003178/0.1168, allocations: 1.728 MB / 486.4 MB, free: 12.62 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002836/0.1196, allocations: 1.73 MB / 488.1 MB, free: 10.88 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.1197, allocations: 0 / 488.1 MB, free: 10.88 MB / 350.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.1.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.0003496/0.1201, allocations: 39.78 kB / 488.1 MB, free: 10.84 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003622/0.1204, allocations: 123.4 kB / 488.3 MB, free: 10.72 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002542/0.1207, allocations: 87.77 kB / 488.3 MB, free: 10.63 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001687/0.1209, allocations: 83.78 kB / 488.4 MB, free: 10.55 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.863e-05/0.121, allocations: 8.219 kB / 488.4 MB, free: 10.54 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 8.77e-05/0.121, allocations: 43.78 kB / 488.5 MB, free: 10.5 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.1212, allocations: 43.84 kB / 488.5 MB, free: 10.45 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.1213, allocations: 4 kB / 488.5 MB, free: 10.45 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0003774/0.1216, allocations: 211.8 kB / 488.7 MB, free: 10.24 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 6.832e-05/0.1217, allocations: 19.92 kB / 488.7 MB, free: 10.22 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.568e-05/0.1218, allocations: 39.73 kB / 488.8 MB, free: 10.18 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004525/0.1222, allocations: 227.3 kB / 489 MB, free: 9.961 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1222, allocations: 0 / 489 MB, free: 9.961 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.894e-06/0.1222, allocations: 0 / 489 MB, free: 9.961 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 6.252e-06/0.1222, allocations: 0 / 489 MB, free: 9.961 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.0006941/0.1229, allocations: 391.2 kB / 489.4 MB, free: 9.543 MB / 350.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.123, allocations: 12.03 kB / 489.4 MB, free: 9.531 MB / 350.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.123, allocations: 8.891 kB / 489.4 MB, free: 9.523 MB / 350.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.1234, allocations: 142.3 kB / 489.5 MB, free: 9.359 MB / 350.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.1234, allocations: 384 / 489.5 MB, free: 9.359 MB / 350.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.1234, allocations: 8.125 kB / 489.6 MB, free: 9.352 MB / 350.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.1236, allocations: 99.31 kB / 489.7 MB, free: 9.242 MB / 350.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1237, allocations: 4 kB / 489.7 MB, free: 9.238 MB / 350.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.1237, allocations: 0 / 489.7 MB, free: 9.238 MB / 350.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.1237, allocations: 3.984 kB / 489.7 MB, free: 9.234 MB / 350.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.1238, allocations: 55.91 kB / 489.7 MB, free: 9.18 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.1243, allocations: 276.7 kB / 490 MB, free: 8.863 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.1246, allocations: 93.28 kB / 490.1 MB, free: 8.754 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.1247, allocations: 49.83 kB / 490.1 MB, free: 8.699 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.1247, allocations: 0 / 490.1 MB, free: 8.699 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.125, allocations: 150.7 kB / 490.3 MB, free: 8.527 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.125, allocations: 3.938 kB / 490.3 MB, free: 8.523 MB / 350.1 MB
Notification: Performance of matching and sorting (n=11): time 0.0005214/0.1255, allocations: 227.2 kB / 490.5 MB, free: 8.289 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.039e-05/0.1256, allocations: 110.8 kB / 490.6 MB, free: 8.156 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.1257, allocations: 133.8 kB / 490.7 MB, free: 8.016 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.1258, allocations: 33.7 kB / 490.8 MB, free: 7.977 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.807e-05/0.1259, allocations: 92.08 kB / 490.9 MB, free: 7.883 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.36e-05/0.1259, allocations: 27.75 kB / 490.9 MB, free: 7.855 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-05/0.126, allocations: 33.7 kB / 490.9 MB, free: 7.816 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.00016/0.1261, allocations: 318.8 kB / 491.2 MB, free: 7.496 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.711e-05/0.1262, allocations: 43.97 kB / 491.3 MB, free: 7.453 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.828e-05/0.1263, allocations: 45.7 kB / 491.3 MB, free: 7.402 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.1265, allocations: 153 kB / 491.5 MB, free: 7.234 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1265, allocations: 4 kB / 491.5 MB, free: 7.23 MB / 350.1 MB
Notification: Performance of matching and sorting (n=12) (initialization): time 0.00039/0.1269, allocations: 183.2 kB / 491.6 MB, free: 7.039 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.398e-05/0.127, allocations: 41.69 kB / 491.7 MB, free: 6.992 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.127, allocations: 0 / 491.7 MB, free: 6.992 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.127, allocations: 0 / 491.7 MB, free: 6.992 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.991e-05/0.1271, allocations: 8 kB / 491.7 MB, free: 6.984 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.1271, allocations: 4 kB / 491.7 MB, free: 6.98 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.216e-05/0.1272, allocations: 15.86 kB / 491.7 MB, free: 6.965 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.1272, allocations: 7.938 kB / 491.7 MB, free: 6.957 MB / 350.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.0001361/0.1273, allocations: 163.5 kB / 491.9 MB, free: 6.781 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.1273, allocations: 15.91 kB / 491.9 MB, free: 6.766 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.1274, allocations: 8.375 kB / 491.9 MB, free: 6.754 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1274, allocations: 0 / 491.9 MB, free: 6.754 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.1274, allocations: 4 kB / 491.9 MB, free: 6.75 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1274, allocations: 0 / 491.9 MB, free: 6.75 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/0.1276, allocations: 172.6 kB / 492.1 MB, free: 6.539 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1276, allocations: 7.984 kB / 492.1 MB, free: 6.531 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.141e-05/0.1276, allocations: 11.94 kB / 492.1 MB, free: 6.52 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1276, allocations: 0 / 492.1 MB, free: 6.52 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.1276, allocations: 8 kB / 492.1 MB, free: 6.512 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1276, allocations: 0 / 492.1 MB, free: 6.512 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1276, allocations: 320 / 492.1 MB, free: 6.512 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.128, allocations: 239.5 kB / 492.3 MB, free: 6.25 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.026e-05/0.1281, allocations: 11.94 kB / 492.4 MB, free: 6.238 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.257e-05/0.1281, allocations: 8.328 kB / 492.4 MB, free: 6.23 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.809e-05/0.1282, allocations: 8 kB / 492.4 MB, free: 6.223 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.1282, allocations: 11.92 kB / 492.4 MB, free: 6.211 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.1282, allocations: 11.94 kB / 492.4 MB, free: 6.199 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 8.611e-05/0.1283, allocations: 114.6 kB / 492.5 MB, free: 6.09 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.1283, allocations: 0 / 492.5 MB, free: 6.09 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003214/0.1286, allocations: 79.73 kB / 492.6 MB, free: 6.012 MB / 350.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.1298, allocations: 400.8 kB / 493 MB, free: 5.707 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.000347/0.1301, allocations: 155.4 kB / 493.1 MB, free: 5.543 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1301, allocations: 7.875 kB / 493.1 MB, free: 5.535 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.1302, allocations: 107.4 kB / 493.2 MB, free: 5.418 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.1305, allocations: 15.98 kB / 493.3 MB, free: 5.402 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005254/0.131, allocations: 235.3 kB / 493.5 MB, free: 5.145 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.1314, allocations: 0.704 MB / 494.2 MB, free: 4.414 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 4.611e-05/0.1314, allocations: 11.92 kB / 494.2 MB, free: 4.402 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.1315, allocations: 15.44 kB / 494.2 MB, free: 4.387 MB / 350.1 MB
Notification: Performance of SimCode: time 3e-07/0.1315, allocations: 0 / 494.2 MB, free: 4.387 MB / 350.1 MB
Notification: Performance of Templates: time 0.007012/0.1385, allocations: 2.598 MB / 496.8 MB, free: 1.797 MB / 350.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: 4.761020204983652]
Failed to read output from testmodel.py, exit status != 0:
0.1463631810620427 0.16224533900000002 0.036868488000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f95f55957b0>