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.0009801/0.0009801, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001095/0.001095, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9941/0.9941, allocations: 177.1 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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.01887/0.01887, allocations: 2.266 MB / 262.5 MB, free: 10.64 MB / 250.7 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.603e-06/1.603e-06, allocations: 0 / 280 MB, free: 9.195 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.784e-05, allocations: 4.844 kB / 280 MB, free: 9.191 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003303/0.003331, allocations: 1.756 MB / 281.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.005235, allocations: 1.78 MB / 283.5 MB, free: 5.629 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.715e-05/0.005303, allocations: 4 kB / 283.5 MB, free: 5.625 MB / 266.7 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.0003182/0.005621, allocations: 51.7 kB / 283.6 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.005961, allocations: 119.4 kB / 283.7 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.006168, allocations: 95.69 kB / 283.8 MB, free: 5.363 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.006282, allocations: 79.72 kB / 283.9 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.632e-05/0.006358, allocations: 16.14 kB / 283.9 MB, free: 5.266 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.742e-05/0.006436, allocations: 47.91 kB / 283.9 MB, free: 5.219 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.00656, allocations: 31.89 kB / 283.9 MB, free: 5.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.006577, allocations: 12 kB / 284 MB, free: 5.176 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.006811, allocations: 187.6 kB / 284.1 MB, free: 4.992 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.993e-05/0.006861, allocations: 23.86 kB / 284.2 MB, free: 4.969 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.006902, allocations: 19.92 kB / 284.2 MB, free: 4.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.007172, allocations: 231.4 kB / 284.4 MB, free: 4.723 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.007176, allocations: 4 kB / 284.4 MB, free: 4.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.007178, allocations: 0 / 284.4 MB, free: 4.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.007182, allocations: 0 / 284.4 MB, free: 4.719 MB / 266.7 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.000389/0.007571, allocations: 361.8 kB / 284.8 MB, free: 4.336 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.007603, allocations: 8.031 kB / 284.8 MB, free: 4.328 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.007639, allocations: 16.94 kB / 284.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.007782, allocations: 129.7 kB / 284.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.007793, allocations: 8.375 kB / 284.9 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.007804, allocations: 4.375 kB / 284.9 MB, free: 4.148 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.007942, allocations: 121.1 kB / 285.1 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.007949, allocations: 7.875 kB / 285.1 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.007957, allocations: 0 / 285.1 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.007961, allocations: 0 / 285.1 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.412e-05/0.008005, allocations: 56.52 kB / 285.1 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001988/0.008204, allocations: 180 kB / 285.3 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.008336, allocations: 90.84 kB / 285.4 MB, free: 3.629 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.002e-05/0.008376, allocations: 59.53 kB / 285.4 MB, free: 3.559 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.008387, allocations: 4 kB / 285.4 MB, free: 3.555 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/0.008506, allocations: 151.3 kB / 285.6 MB, free: 3.375 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.008507, allocations: 0 / 285.6 MB, free: 3.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001749/0.008682, allocations: 185.5 kB / 285.8 MB, free: 3.168 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.008722, allocations: 110.8 kB / 285.9 MB, free: 3.035 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.279e-05/0.008795, allocations: 137.8 kB / 286 MB, free: 2.891 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.00881, allocations: 29.7 kB / 286 MB, free: 2.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.501e-05/0.008835, allocations: 88.09 kB / 286.1 MB, free: 2.766 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.008864, allocations: 35.72 kB / 286.2 MB, free: 2.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.008897, allocations: 29.69 kB / 286.2 MB, free: 2.695 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.613e-05/0.008963, allocations: 318.8 kB / 286.5 MB, free: 2.375 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.12e-05/0.008995, allocations: 44.52 kB / 286.5 MB, free: 2.324 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.508e-05/0.00903, allocations: 55.41 kB / 286.6 MB, free: 2.258 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.069e-05/0.00911, allocations: 115.8 kB / 286.7 MB, free: 2.125 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.009112, allocations: 0 / 286.7 MB, free: 2.125 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002002/0.009312, allocations: 143.8 kB / 286.9 MB, free: 1.965 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.009348, allocations: 37.7 kB / 286.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.009354, allocations: 7.984 kB / 286.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.009365, allocations: 0 / 286.9 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.403e-05/0.009419, allocations: 11.94 kB / 286.9 MB, free: 1.902 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.009424, allocations: 4 kB / 286.9 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.85e-05/0.009462, allocations: 4 kB / 286.9 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.735e-06/0.00947, allocations: 0 / 286.9 MB, free: 1.895 MB / 266.7 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 9.035e-05/0.00956, allocations: 158.3 kB / 287.1 MB, free: 1.723 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.121e-05/0.009581, allocations: 19.92 kB / 287.1 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.243e-05/0.009604, allocations: 8.438 kB / 287.1 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.009606, allocations: 8 kB / 287.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.009608, allocations: 0 / 287.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.009613, allocations: 3.984 kB / 287.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.154e-05/0.009695, allocations: 81.88 kB / 287.2 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.009696, allocations: 0 / 287.2 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.436e-05/0.00972, allocations: 8 kB / 287.2 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.009721, allocations: 0 / 287.2 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.009736, allocations: 11.92 kB / 287.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.009737, allocations: 0 / 287.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.009738, allocations: 0 / 287.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.009868, allocations: 190.9 kB / 287.4 MB, free: 1.344 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.477e-05/0.009883, allocations: 19.88 kB / 287.4 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.009904, allocations: 12 kB / 287.4 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.738e-05/0.009932, allocations: 8 kB / 287.4 MB, free: 1.305 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.33e-05/0.009955, allocations: 3.984 kB / 287.4 MB, free: 1.301 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.009966, allocations: 4 kB / 287.4 MB, free: 1.297 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.271e-05/0.009989, allocations: 24.83 kB / 287.5 MB, free: 1.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009989, allocations: 3.938 kB / 287.5 MB, free: 1.266 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001916/0.01018, allocations: 79.75 kB / 287.6 MB, free: 1.188 MB / 266.7 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.0009241/0.0111, allocations: 486.6 kB / 288 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001539/0.01126, allocations: 183.6 kB / 288.2 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.01126, allocations: 0 / 288.2 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.597e-05/0.01132, allocations: 121.9 kB / 288.3 MB, free: 0.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.01144, allocations: 23.38 kB / 288.3 MB, free: 492 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003426/0.01178, allocations: 252.7 kB / 288.6 MB, free: 200 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.076e-05/0.01181, allocations: 64.16 kB / 288.7 MB, free: 116 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.707e-05/0.01184, allocations: 7.938 kB / 288.7 MB, free: 108 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.724e-05/0.01192, allocations: 79.3 kB / 288.7 MB, free: 28 kB / 266.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01192, allocations: 4 kB / 288.7 MB, free: 24 kB / 266.7 MB Notification: Performance of Templates: time 0.1002/0.1121, allocations: 2.859 MB / 291.6 MB, free: 23.12 MB / 266.7 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=240 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.601302024908364]