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.001479/0.001479, allocations: 105.7 kB / 16.45 MB, free: 6.453 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.001819/0.001819, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.521/1.521, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.01907/0.01907, allocations: 3.278 MB / 312.1 MB, free: 0.9844 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.JSONTest,fileNamePrefix="ExternData_ExternData_Examples_JSONTest",fmuType="me",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.002865/0.002865, allocations: 67.91 kB / 434.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1102, allocations: 54.35 MB / 488.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003261/0.1135, allocations: 1.724 MB / 490.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.1161, allocations: 1.674 MB / 492.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.294e-05/0.1162, allocations: 0 / 492.1 MB, free: 4.891 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.0003139/0.1165, allocations: 43.78 kB / 492.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003642/0.1169, allocations: 127.4 kB / 492.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.1171, allocations: 86.16 kB / 492.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001681/0.1173, allocations: 83.81 kB / 492.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.759e-05/0.1174, allocations: 12.23 kB / 492.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.273e-05/0.1174, allocations: 43.8 kB / 492.5 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.1176, allocations: 35.83 kB / 492.5 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.1176, allocations: 7.938 kB / 492.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003185/0.118, allocations: 203.8 kB / 492.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.309e-05/0.118, allocations: 23.97 kB / 492.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.246e-05/0.1181, allocations: 47.67 kB / 492.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.1185, allocations: 231.2 kB / 493 MB, free: 3.961 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1185, allocations: 3.984 kB / 493 MB, free: 3.957 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1185, allocations: 0 / 493 MB, free: 3.957 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1185, allocations: 4 kB / 493.1 MB, free: 3.953 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.0007115/0.1192, allocations: 484.2 kB / 493.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.1192, allocations: 8.031 kB / 493.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.1193, allocations: 38.75 kB / 493.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.629e-05/0.1193, allocations: 8.891 kB / 493.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.1196, allocations: 216.1 kB / 493.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1196, allocations: 4.375 kB / 493.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.1197, allocations: 7.938 kB / 493.8 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.1199, allocations: 95.38 kB / 493.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.1199, allocations: 0 / 493.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.1199, allocations: 4 kB / 493.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1199, allocations: 0 / 493.9 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.1201, allocations: 59.89 kB / 494 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004546/0.1206, allocations: 313.7 kB / 494.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.1208, allocations: 89.3 kB / 494.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1209, allocations: 53.83 kB / 494.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.1209, allocations: 3.984 kB / 494.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.1212, allocations: 142.7 kB / 494.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 3.527e-06/0.1212, allocations: 3.984 kB / 494.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005206/0.1217, allocations: 227.2 kB / 494.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.436e-05/0.1218, allocations: 110.8 kB / 494.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.122, allocations: 160.9 kB / 495 MB, free: 1.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.122, allocations: 37.7 kB / 495.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.984e-05/0.122, allocations: 96.08 kB / 495.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.754e-05/0.1221, allocations: 27.8 kB / 495.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.404e-05/0.1222, allocations: 21.72 kB / 495.2 MB, free: 1.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1223, allocations: 326.8 kB / 495.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.535e-05/0.1224, allocations: 39.91 kB / 495.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.737e-05/0.1225, allocations: 49.7 kB / 495.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002203/0.1227, allocations: 157 kB / 495.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1227, allocations: 0 / 495.8 MB, free: 0.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003308/0.1231, allocations: 187.2 kB / 496 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.323e-05/0.1231, allocations: 41.69 kB / 496 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.1231, allocations: 4 kB / 496 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.1231, allocations: 0 / 496 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.453e-05/0.1232, allocations: 8 kB / 496 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1232, allocations: 0 / 496 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.762e-05/0.1233, allocations: 27.81 kB / 496 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.1233, allocations: 8 kB / 496 MB, free: 0.6289 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 0.0001512/0.1234, allocations: 159.5 kB / 496.2 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.1235, allocations: 11.95 kB / 496.2 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.1235, allocations: 12.72 kB / 496.2 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1235, allocations: 0 / 496.2 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1235, allocations: 3.984 kB / 496.2 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1235, allocations: 3.938 kB / 496.2 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.1237, allocations: 205.6 kB / 496.4 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-06/0.1237, allocations: 4 kB / 496.4 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.186e-05/0.1238, allocations: 15.92 kB / 496.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1238, allocations: 0 / 496.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.1238, allocations: 4 kB / 496.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1238, allocations: 0 / 496.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1238, allocations: 0 / 496.5 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004344/0.1243, allocations: 255.5 kB / 496.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.497e-05/0.1243, allocations: 89.05 kB / 496.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.1244, allocations: 8 kB / 496.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.718e-05/0.1244, allocations: 7.984 kB / 496.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.204e-05/0.1245, allocations: 15.81 kB / 496.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.1245, allocations: 7.984 kB / 496.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.1246, allocations: 123.2 kB / 497 MB, free: 15.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1246, allocations: 4 kB / 497 MB, free: 15.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003518/0.125, allocations: 79.73 kB / 497 MB, free: 15.52 MB / 366.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.001783/0.1268, allocations: 1.045 MB / 498.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.1271, allocations: 163.3 kB / 498.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1271, allocations: 4 kB / 498.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001525/0.1273, allocations: 111.2 kB / 498.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.1275, allocations: 23.45 kB / 498.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/0.13, allocations: 1.878 MB / 0.4885 GB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.1303, allocations: 0.7041 MB / 0.4892 GB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.007e-05/0.1304, allocations: 20.41 kB / 0.4892 GB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.392e-05/0.1305, allocations: 35.42 kB / 0.4893 GB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1305, allocations: 0 / 0.4893 GB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.1601, allocations: 4.281 MB / 0.4935 GB, free: 7.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.17/8.33, allocations: 0.8438 kB / 0.4935 GB, free: 7.168 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.JSONTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_JSONTest.fmu > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.02678462100448] Failed to read output from testmodel.py, exit status != 0: 8.405787299998337 8.429999744 8.306977813 Calling exit ...