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.0008206/0.0008206, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0007949/0.0007949, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8579/0.8579, allocations: 177.1 MB / 203.5 MB, free: 5.742 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.0157/0.0157, allocations: 2.248 MB / 262.2 MB, free: 11.01 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.222e-06/1.222e-06, allocations: 0 / 386.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.393e-05/2.515e-05, allocations: 6.281 kB / 386.6 MB, free: 11.94 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00207/0.002095, allocations: 1.706 MB / 388.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.0036, allocations: 1.706 MB / 390 MB, free: 8.504 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.33e-05/0.003653, allocations: 3.938 kB / 390 MB, free: 8.5 MB / 362.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.0003147/0.003968, allocations: 43.7 kB / 390 MB, free: 8.457 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/0.004218, allocations: 127.3 kB / 390.1 MB, free: 8.332 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001404/0.004359, allocations: 91.69 kB / 390.2 MB, free: 8.242 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.00446, allocations: 83.77 kB / 390.3 MB, free: 8.16 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.428e-05/0.004534, allocations: 8.219 kB / 390.3 MB, free: 8.148 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.678e-05/0.004611, allocations: 63.81 kB / 390.4 MB, free: 8.086 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.004717, allocations: 27.91 kB / 390.4 MB, free: 8.059 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.004731, allocations: 4 kB / 390.4 MB, free: 8.055 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.004909, allocations: 187.7 kB / 390.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.718e-05/0.004956, allocations: 19.92 kB / 390.6 MB, free: 7.852 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.693e-05/0.004993, allocations: 23.91 kB / 390.6 MB, free: 7.828 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.005253, allocations: 255.2 kB / 390.9 MB, free: 7.578 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.005255, allocations: 0 / 390.9 MB, free: 7.578 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.005256, allocations: 0 / 390.9 MB, free: 7.578 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.00526, allocations: 0 / 390.9 MB, free: 7.578 MB / 362.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.0004163/0.005676, allocations: 399.1 kB / 391.3 MB, free: 7.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.005709, allocations: 12.03 kB / 391.3 MB, free: 7.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.249e-05/0.005741, allocations: 8.891 kB / 391.3 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.005898, allocations: 140.3 kB / 391.4 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.005907, allocations: 4.375 kB / 391.4 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.005918, allocations: 8.312 kB / 391.4 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.006074, allocations: 129.6 kB / 391.6 MB, free: 6.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.006082, allocations: 3.938 kB / 391.6 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.006092, allocations: 0 / 391.6 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.006096, allocations: 4 kB / 391.6 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.056e-05/0.006186, allocations: 85.61 kB / 391.7 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002545/0.006441, allocations: 241.5 kB / 391.9 MB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.006611, allocations: 122.9 kB / 392 MB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.105e-05/0.006682, allocations: 79.44 kB / 392.1 MB, free: 6.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.006695, allocations: 4 kB / 392.1 MB, free: 6.211 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001395/0.006834, allocations: 172.4 kB / 392.3 MB, free: 6.012 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 8.21e-07/0.006835, allocations: 4 kB / 392.3 MB, free: 6.008 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003112/0.007147, allocations: 290.6 kB / 392.6 MB, free: 5.699 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.00719, allocations: 110.8 kB / 392.7 MB, free: 5.566 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.865e-05/0.007269, allocations: 141.2 kB / 392.8 MB, free: 5.422 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.007281, allocations: 29.7 kB / 392.8 MB, free: 5.387 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.409e-05/0.007315, allocations: 95.95 kB / 392.9 MB, free: 5.289 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.007341, allocations: 31.84 kB / 393 MB, free: 5.258 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.007374, allocations: 25.7 kB / 393 MB, free: 5.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.069e-05/0.007445, allocations: 318.8 kB / 393.3 MB, free: 4.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.882e-05/0.007504, allocations: 73.67 kB / 393.4 MB, free: 4.828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.742e-05/0.007561, allocations: 87.39 kB / 393.5 MB, free: 4.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.00769, allocations: 153 kB / 393.6 MB, free: 4.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.007693, allocations: 3.938 kB / 393.6 MB, free: 4.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001779/0.007871, allocations: 236.8 kB / 393.8 MB, free: 4.309 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.007897, allocations: 41.69 kB / 393.9 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.007901, allocations: 0 / 393.9 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/0.00791, allocations: 3.938 kB / 393.9 MB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.549e-05/0.007946, allocations: 8 kB / 393.9 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.007951, allocations: 8 kB / 393.9 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.44e-05/0.007985, allocations: 7.984 kB / 393.9 MB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.007993, allocations: 4 kB / 393.9 MB, free: 4.23 MB / 362.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 7.513e-05/0.008068, allocations: 163.7 kB / 394.1 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.353e-05/0.008082, allocations: 11.95 kB / 394.1 MB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.878e-05/0.0081, allocations: 8.438 kB / 394.1 MB, free: 4.031 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.008103, allocations: 3.984 kB / 394.1 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.008107, allocations: 4 kB / 394.1 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.008111, allocations: 3.984 kB / 394.1 MB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.573e-05/0.008187, allocations: 133.2 kB / 394.2 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.008189, allocations: 7.938 kB / 394.2 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.261e-05/0.008212, allocations: 11.94 kB / 394.3 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.008213, allocations: 0 / 394.3 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.008223, allocations: 15.92 kB / 394.3 MB, free: 3.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.008224, allocations: 4 kB / 394.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.008225, allocations: 0 / 394.3 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002291/0.008454, allocations: 277.6 kB / 394.5 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.008468, allocations: 15.88 kB / 394.6 MB, free: 3.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.008484, allocations: 0 / 394.6 MB, free: 3.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.697e-05/0.008511, allocations: 12 kB / 394.6 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.75e-05/0.008549, allocations: 11.92 kB / 394.6 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.00856, allocations: 4 kB / 394.6 MB, free: 3.473 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.774e-05/0.008607, allocations: 107.3 kB / 394.7 MB, free: 3.367 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008608, allocations: 0 / 394.7 MB, free: 3.367 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001888/0.008796, allocations: 79.73 kB / 394.8 MB, free: 3.289 MB / 362.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.000543/0.009339, allocations: 418 kB / 395.2 MB, free: 2.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002053/0.009545, allocations: 222.7 kB / 395.4 MB, free: 2.723 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.009546, allocations: 0 / 395.4 MB, free: 2.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.074e-05/0.009627, allocations: 141.1 kB / 395.5 MB, free: 2.566 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.009775, allocations: 18.91 kB / 395.5 MB, free: 2.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.0101, allocations: 269.6 kB / 395.8 MB, free: 2.242 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.425e-05/0.01014, allocations: 87.25 kB / 395.9 MB, free: 2.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.447e-05/0.01017, allocations: 16.5 kB / 395.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.01017, allocations: 0 / 395.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of Templates: time 0.002949/0.01312, allocations: 2.635 MB / 398.5 MB, free: 15.49 MB / 378.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=480 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.710257899016142] Failed to read output from testmodel.py, exit status != 0: 0.017373709939420223 0.024712288000000002 0.017996543 Calling exit ...