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.001264/0.001264, allocations: 89.06 kB / 19.65 MB, free: 272 kB / 13.93 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.001199/0.001199, allocations: 169 kB / 23.02 MB, free: 1.543 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.9797/0.9797, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.01257/0.01257, allocations: 2.26 MB / 262.2 MB, free: 10.78 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 2.194e-06/2.194e-06, allocations: 0 / 332.8 MB, free: 1.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.29e-05/3.51e-05, allocations: 2.312 kB / 332.8 MB, free: 1.512 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003554/0.00359, allocations: 1.759 MB / 334.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.006093, allocations: 1.776 MB / 336.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.727e-05/0.00618, allocations: 4 kB / 336.3 MB, free: 13.95 MB / 314.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.0004335/0.006614, allocations: 47.7 kB / 336.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004127/0.007026, allocations: 115.4 kB / 336.5 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.007277, allocations: 91.7 kB / 336.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.007425, allocations: 91.7 kB / 336.7 MB, free: 13.61 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.379e-05/0.007519, allocations: 12.22 kB / 336.7 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.007782, allocations: 51.83 kB / 336.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.007924, allocations: 27.89 kB / 336.7 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/0.007945, allocations: 8 kB / 336.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002403/0.008186, allocations: 183.7 kB / 336.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.25e-05/0.008248, allocations: 23.91 kB / 337 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.345e-05/0.008302, allocations: 27.92 kB / 337 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.008594, allocations: 235.3 kB / 337.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.008596, allocations: 0 / 337.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.008598, allocations: 0 / 337.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.008603, allocations: 0 / 337.2 MB, free: 13.04 MB / 314.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.0005167/0.00912, allocations: 485.5 kB / 337.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.009157, allocations: 11.97 kB / 337.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.00921, allocations: 12.89 kB / 337.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.009377, allocations: 148.5 kB / 337.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.068e-06/0.009386, allocations: 384 / 337.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.009399, allocations: 4.375 kB / 337.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000178/0.009577, allocations: 127.9 kB / 338 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.009588, allocations: 3.938 kB / 338 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.304e-05/0.009601, allocations: 8 kB / 338 MB, free: 12.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.009609, allocations: 7.938 kB / 338 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.032e-05/0.009669, allocations: 53.67 kB / 338.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000346/0.01002, allocations: 287.5 kB / 338.3 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001992/0.01021, allocations: 123.8 kB / 338.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.745e-05/0.01027, allocations: 61.11 kB / 338.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.01029, allocations: 8 kB / 338.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.01047, allocations: 159.7 kB / 338.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.01047, allocations: 0 / 338.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003632/0.01083, allocations: 226.8 kB / 338.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.01088, allocations: 110.8 kB / 339 MB, free: 10.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.01102, allocations: 197.9 kB / 339.2 MB, free: 10.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.01104, allocations: 25.7 kB / 339.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.365e-05/0.0111, allocations: 142.9 kB / 339.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.01114, allocations: 31.73 kB / 339.4 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-05/0.01118, allocations: 27.38 kB / 339.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.01133, allocations: 0.4923 MB / 339.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.257e-05/0.01138, allocations: 45.69 kB / 340 MB, free: 9.969 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.244e-05/0.01144, allocations: 65.06 kB / 340 MB, free: 9.891 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.01154, allocations: 122.9 kB / 340.1 MB, free: 9.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.01154, allocations: 3.938 kB / 340.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001838/0.01172, allocations: 181 kB / 340.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.01176, allocations: 41.62 kB / 340.4 MB, free: 9.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01177, allocations: 4 kB / 340.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.01178, allocations: 0 / 340.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.861e-05/0.01184, allocations: 11.98 kB / 340.4 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.01185, allocations: 0 / 340.4 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.287e-05/0.01189, allocations: 15.94 kB / 340.4 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.0119, allocations: 4 kB / 340.4 MB, free: 9.469 MB / 314.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 0.0001073/0.01201, allocations: 202.1 kB / 340.6 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.01203, allocations: 15.91 kB / 340.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.01206, allocations: 12.44 kB / 340.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01206, allocations: 3.984 kB / 340.6 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.01207, allocations: 4 kB / 340.6 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.01207, allocations: 4 kB / 340.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.01219, allocations: 144.6 kB / 340.8 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.01219, allocations: 3.938 kB / 340.8 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.49e-05/0.01222, allocations: 8 kB / 340.8 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.01223, allocations: 0 / 340.8 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.01224, allocations: 7.984 kB / 340.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.01224, allocations: 0 / 340.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01224, allocations: 0 / 340.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.01248, allocations: 255.3 kB / 341.1 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.0125, allocations: 19.89 kB / 341.1 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.01252, allocations: 8 kB / 341.1 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.276e-05/0.01255, allocations: 4 kB / 341.1 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.01259, allocations: 7.984 kB / 341.1 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.01261, allocations: 8 kB / 341.1 MB, free: 8.684 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.64e-05/0.01267, allocations: 150.2 kB / 341.2 MB, free: 8.539 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01267, allocations: 0 / 341.2 MB, free: 8.539 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002552/0.01293, allocations: 75.73 kB / 341.3 MB, free: 8.465 MB / 314.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.0008933/0.01382, allocations: 430.6 kB / 341.7 MB, free: 8.133 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000202/0.01402, allocations: 190.4 kB / 341.9 MB, free: 7.918 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01403, allocations: 0 / 341.9 MB, free: 7.918 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.54e-05/0.0141, allocations: 136.6 kB / 342.1 MB, free: 7.762 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.01429, allocations: 35.88 kB / 342.1 MB, free: 7.727 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003812/0.01467, allocations: 240.2 kB / 342.3 MB, free: 7.453 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.892e-05/0.01471, allocations: 63.34 kB / 342.4 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.974e-05/0.01474, allocations: 7.984 kB / 342.4 MB, free: 7.363 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.01477, allocations: 16.5 kB / 342.4 MB, free: 7.348 MB / 314.7 MB Notification: Performance of SimCode: time 8.51e-07/0.01477, allocations: 0 / 342.4 MB, free: 7.348 MB / 314.7 MB Notification: Performance of Templates: time 0.00465/0.01942, allocations: 2.609 MB / 345 MB, free: 4.75 MB / 314.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.9698785170912743]