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.001321/0.001321, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001453/0.001453, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.434/1.434, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.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.01469/0.01469, allocations: 3.272 MB / 312.8 MB, free: 2.117 MB / 238.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: "" <> buildModelFMU(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 68.22 kB / 435.1 MB, free: 39.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08872, allocations: 54.33 MB / 489.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003105/0.09182, allocations: 1.725 MB / 491.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.09409, allocations: 1.676 MB / 492.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.866e-05/0.09418, allocations: 0 / 492.8 MB, free: 10.89 MB / 350.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.0003105/0.09449, allocations: 40.16 kB / 492.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003773/0.09487, allocations: 126 kB / 493 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.09511, allocations: 77.94 kB / 493.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.09525, allocations: 90.44 kB / 493.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.732e-05/0.09534, allocations: 12.62 kB / 493.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.616e-05/0.09541, allocations: 35.98 kB / 493.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001819/0.09559, allocations: 45.8 kB / 493.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.09562, allocations: 5.562 kB / 493.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003117/0.09593, allocations: 200.1 kB / 493.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.09599, allocations: 30.81 kB / 493.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.297e-05/0.09604, allocations: 38.8 kB / 493.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004075/0.09645, allocations: 242.8 kB / 493.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.09646, allocations: 1.312 kB / 493.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09646, allocations: 0 / 493.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.09646, allocations: 0 / 493.8 MB, free: 10.31 MB / 350.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.0006151/0.09708, allocations: 485 kB / 494.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.09712, allocations: 13.08 kB / 494.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.4e-05/0.09713, allocations: 5.688 kB / 494.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.238e-05/0.09715, allocations: 40.12 kB / 494.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.02e-05/0.0972, allocations: 10.39 kB / 494.3 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.09746, allocations: 213.3 kB / 494.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.09747, allocations: 7.312 kB / 494.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.09748, allocations: 2.219 kB / 494.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.09768, allocations: 94.03 kB / 494.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.09769, allocations: 3.938 kB / 494.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.09771, allocations: 9.062 kB / 494.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.09771, allocations: 1.125 kB / 494.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.09785, allocations: 52.72 kB / 494.7 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.0982, allocations: 315.7 kB / 495 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002245/0.09842, allocations: 100.5 kB / 495.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.16e-05/0.09851, allocations: 48.59 kB / 495.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.09853, allocations: 1.125 kB / 495.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.09871, allocations: 138 kB / 495.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.09871, allocations: 5.281 kB / 495.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004499/0.09916, allocations: 227.7 kB / 495.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.09919, allocations: 105.2 kB / 495.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/0.09931, allocations: 164.5 kB / 495.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.09932, allocations: 33.7 kB / 495.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.949e-05/0.09935, allocations: 100.1 kB / 495.9 MB, free: 8.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.09938, allocations: 23.81 kB / 495.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.09942, allocations: 29.7 kB / 495.9 MB, free: 8.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.951e-05/0.09946, allocations: 326.8 kB / 496.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.483e-05/0.09954, allocations: 31.98 kB / 496.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.31e-05/0.09962, allocations: 53.69 kB / 496.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.09977, allocations: 161 kB / 496.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.09977, allocations: 0 / 496.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002462/0.1, allocations: 191.5 kB / 496.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.1, allocations: 37.7 kB / 496.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.1, allocations: 0 / 496.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.1001, allocations: 48 / 496.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.074e-05/0.1001, allocations: 15.97 kB / 496.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1001, allocations: 4 kB / 496.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.409e-05/0.1002, allocations: 15.83 kB / 496.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.1002, allocations: 4 kB / 496.8 MB, free: 7.391 MB / 350.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 8.729e-05/0.1003, allocations: 170.1 kB / 496.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.1003, allocations: 11.95 kB / 496.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.46e-05/0.1004, allocations: 12.72 kB / 496.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1004, allocations: 0 / 496.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1004, allocations: 4 kB / 496.9 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1004, allocations: 3.938 kB / 497 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.1005, allocations: 205.5 kB / 497.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1005, allocations: 0 / 497.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.123e-05/0.1005, allocations: 8 kB / 497.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1005, allocations: 4 kB / 497.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.1005, allocations: 3.984 kB / 497.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.1005, allocations: 8 kB / 497.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1005, allocations: 0 / 497.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.1008, allocations: 247.4 kB / 497.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.94e-05/0.1009, allocations: 93.05 kB / 497.5 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.1009, allocations: 12.06 kB / 497.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.519e-05/0.101, allocations: 8 kB / 497.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.101, allocations: 11.92 kB / 497.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.101, allocations: 4 kB / 497.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.031e-05/0.1011, allocations: 127.2 kB / 497.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1011, allocations: 0 / 497.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1014, allocations: 79.73 kB / 497.7 MB, free: 6.285 MB / 350.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.001316/0.1027, allocations: 1.051 MB / 498.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.103, allocations: 163.3 kB / 499 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.103, allocations: 0 / 499 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.1031, allocations: 107.3 kB / 499.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.1033, allocations: 30.45 kB / 499.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.1049, allocations: 1.884 MB / 0.4892 GB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.871e-05/0.105, allocations: 0.6963 MB / 0.4899 GB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.126e-05/0.1051, allocations: 20.42 kB / 0.4899 GB, free: 2.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.687e-05/0.1052, allocations: 35.41 kB / 0.49 GB, free: 2.203 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1052, allocations: 0 / 0.49 GB, free: 2.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02228/0.1274, allocations: 4.316 MB / 0.4942 GB, free: 13.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.425/8.552, allocations: 13.06 kB / 0.4942 GB, free: 13.88 MB / 366.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_JSONTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.104859112005215] Failed to read output from testmodel.py, exit status != 0: 8.6797525639995 8.695142075 8.595783685 Calling exit ...