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.001467/0.001467, allocations: 80.28 kB / 19.18 MB, free: 2.531 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.001554/0.001554, allocations: 170.8 kB / 22.46 MB, free: 5.355 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.488/1.488, allocations: 177.1 MB / 202.8 MB, free: 9.18 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.01381/0.01381, allocations: 2.265 MB / 261.4 MB, free: 14.44 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: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 385.8 MB, free: 476 kB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.087e-05/3.252e-05, allocations: 2.281 kB / 385.8 MB, free: 472 kB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003582/0.003614, allocations: 1.7 MB / 387.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002797/0.006411, allocations: 1.714 MB / 389.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.165e-05/0.006483, allocations: 0 / 389.2 MB, free: 13.02 MB / 318.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.0004083/0.006891, allocations: 43.72 kB / 389.3 MB, free: 12.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.00733, allocations: 127.3 kB / 389.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.007596, allocations: 94.58 kB / 389.5 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.007762, allocations: 75.78 kB / 389.6 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.00787, allocations: 20.2 kB / 389.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.00798, allocations: 43.84 kB / 389.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.008147, allocations: 39.83 kB / 389.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.008174, allocations: 8 kB / 389.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003154/0.008489, allocations: 175.8 kB / 389.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.7e-05/0.008566, allocations: 23.92 kB / 389.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.978e-05/0.008626, allocations: 23.92 kB / 389.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004337/0.009059, allocations: 267.1 kB / 390.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.009065, allocations: 3.984 kB / 390.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.009066, allocations: 0 / 390.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.009072, allocations: 0 / 390.1 MB, free: 12.09 MB / 318.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.0007013/0.009773, allocations: 384.9 kB / 390.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.009811, allocations: 8.031 kB / 390.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.692e-05/0.009868, allocations: 16.84 kB / 390.5 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.01015, allocations: 137.6 kB / 390.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.01016, allocations: 4.375 kB / 390.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.01018, allocations: 12.38 kB / 390.7 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.01045, allocations: 125.6 kB / 390.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.01046, allocations: 3.938 kB / 390.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.01048, allocations: 0 / 390.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.01049, allocations: 4 kB / 390.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.01066, allocations: 81.66 kB / 390.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004013/0.01107, allocations: 245.3 kB / 391.1 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.01137, allocations: 122.9 kB / 391.3 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.0115, allocations: 79.45 kB / 391.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.01151, allocations: 0 / 391.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.01177, allocations: 176.4 kB / 391.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.163e-06/0.01177, allocations: 0 / 391.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005762/0.01235, allocations: 294.6 kB / 391.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.548e-05/0.01244, allocations: 110.8 kB / 391.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.01258, allocations: 141.2 kB / 392 MB, free: 9.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.203e-05/0.01262, allocations: 25.7 kB / 392.1 MB, free: 9.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.16e-05/0.01268, allocations: 96.3 kB / 392.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.298e-05/0.01272, allocations: 35.72 kB / 392.2 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.01278, allocations: 29.72 kB / 392.2 MB, free: 9.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.01296, allocations: 318.8 kB / 392.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.01307, allocations: 65.69 kB / 392.6 MB, free: 9.359 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.01319, allocations: 87.39 kB / 392.7 MB, free: 9.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002346/0.01343, allocations: 156.9 kB / 392.8 MB, free: 9.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.01343, allocations: 11.88 kB / 392.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003744/0.01381, allocations: 228.9 kB / 393.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.01385, allocations: 33.7 kB / 393.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01386, allocations: 0 / 393.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.01387, allocations: 0 / 393.1 MB, free: 8.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.839e-05/0.01395, allocations: 15.98 kB / 393.1 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.01396, allocations: 0 / 393.1 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.283e-05/0.01403, allocations: 11.95 kB / 393.1 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.01405, allocations: 7.984 kB / 393.1 MB, free: 8.762 MB / 318.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.000146/0.01419, allocations: 163.3 kB / 393.3 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.01422, allocations: 11.95 kB / 393.3 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.751e-05/0.01425, allocations: 16.77 kB / 393.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.01425, allocations: 0 / 393.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.01426, allocations: 0 / 393.3 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.01426, allocations: 3.984 kB / 393.3 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.01441, allocations: 137.2 kB / 393.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.01441, allocations: 7.938 kB / 393.5 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.924e-05/0.01447, allocations: 15.92 kB / 393.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.01447, allocations: 0 / 393.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.01449, allocations: 4 kB / 393.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.01449, allocations: 0 / 393.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01449, allocations: 0 / 393.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004445/0.01494, allocations: 281.3 kB / 393.8 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.341e-05/0.01496, allocations: 15.89 kB / 393.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.01499, allocations: 4 kB / 393.8 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.658e-05/0.01506, allocations: 7.984 kB / 393.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.0151, allocations: 8 kB / 393.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.01512, allocations: 7.984 kB / 393.8 MB, free: 8.012 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.646e-05/0.01521, allocations: 103.3 kB / 393.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01521, allocations: 0 / 393.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003259/0.01553, allocations: 79.73 kB / 394 MB, free: 7.832 MB / 318.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.001215/0.01675, allocations: 408.4 kB / 394.4 MB, free: 7.516 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.01713, allocations: 230.7 kB / 394.6 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01713, allocations: 0 / 394.6 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.01732, allocations: 137.1 kB / 394.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.01758, allocations: 31.59 kB / 394.8 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006408/0.01822, allocations: 263.7 kB / 395 MB, free: 6.793 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.01833, allocations: 85.11 kB / 395.1 MB, free: 6.688 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.087e-05/0.01837, allocations: 15.94 kB / 395.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.15e-05/0.01841, allocations: 16.5 kB / 395.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.01841, allocations: 0 / 395.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of Templates: time 0.006599/0.02501, allocations: 2.588 MB / 397.7 MB, free: 4.074 MB / 318.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.39031869918108] Failed to read output from testmodel.py, exit status != 0: 0.033889178186655045 0.050414730000000005 0.036928284000000006 Calling exit ...