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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007658/0.007658, allocations: 100.1 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 197.2 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.01448/0.01448, allocations: 2.961 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 67.88 kB / 406.3 MB, free: 28.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1081, allocations: 50.31 MB / 456.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.004101/0.1122, allocations: 1.719 MB / 458.3 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.115, allocations: 1.612 MB / 459.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.889e-05/0.1151, allocations: 0 / 459.9 MB, free: 7.047 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo:104:3-139:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0004356/0.1155, allocations: 47.66 kB / 460 MB, free: 7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.1159, allocations: 119.5 kB / 460.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.1163, allocations: 87.78 kB / 460.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.1164, allocations: 87.7 kB / 460.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.1166, allocations: 16.22 kB / 460.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.115e-05/0.1166, allocations: 39.8 kB / 460.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002423/0.1169, allocations: 39.83 kB / 460.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.409e-05/0.1169, allocations: 12 kB / 460.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003172/0.1173, allocations: 191.8 kB / 460.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.673e-05/0.1173, allocations: 23.91 kB / 460.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.025e-05/0.1174, allocations: 43.78 kB / 460.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.1178, allocations: 223.5 kB / 460.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1178, allocations: 4 kB / 460.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1178, allocations: 0 / 460.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1178, allocations: 0 / 460.8 MB, free: 6.125 MB / 334.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.0007489/0.1186, allocations: 452.8 kB / 461.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1186, allocations: 19.89 kB / 461.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.1187, allocations: 8.844 kB / 461.3 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.119, allocations: 208.1 kB / 461.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.119, allocations: 8.312 kB / 461.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.119, allocations: 8.125 kB / 461.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.1192, allocations: 95.38 kB / 461.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.1193, allocations: 0 / 461.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.1193, allocations: 4 kB / 461.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1193, allocations: 4 kB / 461.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.1194, allocations: 47.97 kB / 461.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/0.1199, allocations: 305.7 kB / 462 MB, free: 4.832 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.1201, allocations: 101.2 kB / 462.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.1202, allocations: 53.75 kB / 462.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.1203, allocations: 3.984 kB / 462.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.1205, allocations: 130.8 kB / 462.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.1205, allocations: 4 kB / 462.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004677/0.121, allocations: 231.3 kB / 462.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.121, allocations: 114.7 kB / 462.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001328/0.1212, allocations: 145.4 kB / 462.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.1212, allocations: 25.7 kB / 462.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.801e-05/0.1213, allocations: 88.14 kB / 462.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.477e-05/0.1213, allocations: 31.55 kB / 462.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.1214, allocations: 29.72 kB / 462.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1215, allocations: 334.6 kB / 463.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.154e-05/0.1216, allocations: 31.98 kB / 463.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.1217, allocations: 61.62 kB / 463.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.1219, allocations: 141.1 kB / 463.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1219, allocations: 4 kB / 463.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003383/0.1223, allocations: 191.2 kB / 463.6 MB, free: 2.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.1223, allocations: 36.36 kB / 463.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.1223, allocations: 4 kB / 463.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1223, allocations: 0 / 463.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.539e-05/0.1224, allocations: 15.92 kB / 463.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1224, allocations: 0 / 463.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.7e-05/0.1225, allocations: 11.91 kB / 463.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.1225, allocations: 4.266 kB / 463.7 MB, free: 2.918 MB / 334.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.0001318/0.1227, allocations: 168.1 kB / 463.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.1227, allocations: 11.89 kB / 463.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.392e-05/0.1228, allocations: 16.36 kB / 463.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1228, allocations: 0 / 463.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1228, allocations: 0 / 463.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1228, allocations: 0 / 463.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001707/0.123, allocations: 205.5 kB / 464.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.123, allocations: 0 / 464.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.863e-05/0.123, allocations: 8 kB / 464.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.123, allocations: 4 kB / 464.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.123, allocations: 7.922 kB / 464.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1231, allocations: 8 kB / 464.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.1231, allocations: 4.312 kB / 464.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003581/0.1234, allocations: 243.4 kB / 464.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.973e-05/0.1235, allocations: 92.95 kB / 464.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.907e-05/0.1235, allocations: 3.984 kB / 464.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.582e-05/0.1236, allocations: 8 kB / 464.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.1237, allocations: 8 kB / 464.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.1237, allocations: 11.92 kB / 464.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.1238, allocations: 107.3 kB / 464.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1238, allocations: 0 / 464.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003223/0.1242, allocations: 75.98 kB / 464.7 MB, free: 1.844 MB / 334.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.000921/0.1251, allocations: 389 kB / 465.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003406/0.1255, allocations: 195.3 kB / 465.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1255, allocations: 4 kB / 465.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.1256, allocations: 135.3 kB / 465.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.1259, allocations: 20 kB / 465.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004758/0.1264, allocations: 239.3 kB / 465.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.1267, allocations: 0.7002 MB / 466.3 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.1267, allocations: 8 kB / 466.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.277e-05/0.1268, allocations: 15.42 kB / 466.4 MB, free: 164 kB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1268, allocations: 0 / 466.4 MB, free: 164 kB / 334.1 MB Notification: Performance of Templates: time 0.006037/0.1328, allocations: 2.541 MB / 468.9 MB, free: 13.63 MB / 350.1 MB make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile (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)