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.0007732/0.0007732, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0008051/0.0008051, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9053/0.9053, allocations: 177.1 MB / 202.8 MB, free: 5.73 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.0102/0.0102, allocations: 2.251 MB / 261.4 MB, free: 10.98 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: "" <> 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: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.325e-05, allocations: 6.219 kB / 385.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00283/0.002853, allocations: 1.701 MB / 387 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.004389, allocations: 1.706 MB / 388.7 MB, free: 8.965 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.005e-05/0.004449, allocations: 7.938 kB / 388.7 MB, free: 8.957 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.0002994/0.004749, allocations: 39.77 kB / 388.8 MB, free: 8.918 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002996/0.005048, allocations: 127.3 kB / 388.9 MB, free: 8.793 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.005227, allocations: 87.7 kB / 389 MB, free: 8.707 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.005337, allocations: 91.7 kB / 389.1 MB, free: 8.617 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.651e-05/0.005413, allocations: 12.2 kB / 389.1 MB, free: 8.602 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.463e-05/0.005488, allocations: 47.91 kB / 389.1 MB, free: 8.555 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.005593, allocations: 35.89 kB / 389.1 MB, free: 8.52 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.428e-05/0.005607, allocations: 4 kB / 389.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.005806, allocations: 195.6 kB / 389.3 MB, free: 8.324 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-05/0.005872, allocations: 23.91 kB / 389.4 MB, free: 8.301 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.045e-05/0.005912, allocations: 19.94 kB / 389.4 MB, free: 8.281 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002637/0.006176, allocations: 263.3 kB / 389.6 MB, free: 8.023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.006179, allocations: 3.984 kB / 389.6 MB, free: 8.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.00618, allocations: 0 / 389.6 MB, free: 8.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.006184, allocations: 0 / 389.6 MB, free: 8.02 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.0004725/0.006657, allocations: 415.1 kB / 390.1 MB, free: 7.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.00669, allocations: 19.97 kB / 390.1 MB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.512e-05/0.006715, allocations: 34.75 kB / 390.1 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.823e-05/0.006754, allocations: 16.89 kB / 390.1 MB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.006942, allocations: 160.4 kB / 390.3 MB, free: 7.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/0.006951, allocations: 4.375 kB / 390.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.006961, allocations: 384 / 390.3 MB, free: 7.316 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.007127, allocations: 133.4 kB / 390.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.007134, allocations: 0 / 390.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.448e-06/0.007144, allocations: 0 / 390.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.007148, allocations: 0 / 390.4 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.404e-05/0.007242, allocations: 93.59 kB / 390.5 MB, free: 7.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002903/0.007532, allocations: 280.7 kB / 390.8 MB, free: 6.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001794/0.007711, allocations: 122.9 kB / 390.9 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.066e-05/0.007782, allocations: 79.44 kB / 391 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.007795, allocations: 0 / 391 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000155/0.00795, allocations: 168.4 kB / 391.1 MB, free: 6.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 8.52e-07/0.007951, allocations: 0 / 391.1 MB, free: 6.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003258/0.008277, allocations: 294.8 kB / 391.4 MB, free: 6.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.008323, allocations: 118.7 kB / 391.5 MB, free: 5.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.703e-05/0.00842, allocations: 161.7 kB / 391.7 MB, free: 5.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.008432, allocations: 25.7 kB / 391.7 MB, free: 5.668 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.008471, allocations: 100.1 kB / 391.8 MB, free: 5.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.008499, allocations: 35.67 kB / 391.9 MB, free: 5.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.008536, allocations: 21.72 kB / 391.9 MB, free: 5.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.008609, allocations: 326.8 kB / 392.2 MB, free: 5.176 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.311e-05/0.008672, allocations: 73.67 kB / 392.3 MB, free: 5.098 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.174e-05/0.008734, allocations: 87.39 kB / 392.4 MB, free: 5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.008861, allocations: 165.2 kB / 392.5 MB, free: 4.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.008863, allocations: 0 / 392.5 MB, free: 4.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001917/0.009054, allocations: 228.8 kB / 392.7 MB, free: 4.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.009084, allocations: 37.69 kB / 392.8 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.00909, allocations: 4 kB / 392.8 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.009099, allocations: 0 / 392.8 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.611e-05/0.009135, allocations: 8 kB / 392.8 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.00914, allocations: 0 / 392.8 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.832e-05/0.009188, allocations: 15.98 kB / 392.8 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.009198, allocations: 8 kB / 392.8 MB, free: 4.5 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 9.058e-05/0.009288, allocations: 155.5 kB / 393 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.94e-05/0.009308, allocations: 15.91 kB / 393 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.513e-05/0.009333, allocations: 12.78 kB / 393 MB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.009337, allocations: 3.984 kB / 393 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.009341, allocations: 4 kB / 393 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.009345, allocations: 0 / 393 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.009456, allocations: 172.6 kB / 393.2 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.009457, allocations: 0 / 393.2 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.607e-05/0.009483, allocations: 19.94 kB / 393.2 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.009485, allocations: 0 / 393.2 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.009497, allocations: 4 kB / 393.2 MB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.009499, allocations: 4 kB / 393.2 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.009501, allocations: 320 / 393.2 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003157/0.009816, allocations: 285.1 kB / 393.5 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.009841, allocations: 19.94 kB / 393.5 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.009864, allocations: 4 kB / 393.5 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.579e-05/0.00991, allocations: 11.98 kB / 393.5 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.00994, allocations: 7.938 kB / 393.5 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.009955, allocations: 8 kB / 393.5 MB, free: 3.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.01003, allocations: 128.6 kB / 393.7 MB, free: 3.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01003, allocations: 0 / 393.7 MB, free: 3.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002206/0.01025, allocations: 75.8 kB / 393.7 MB, free: 3.492 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.0009753/0.01122, allocations: 1.114 MB / 394.8 MB, free: 2.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.01144, allocations: 226.7 kB / 395.1 MB, free: 2.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.01144, allocations: 0 / 395.1 MB, free: 2.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.653e-05/0.01152, allocations: 145 kB / 395.2 MB, free: 2.023 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001594/0.01168, allocations: 15.94 kB / 395.2 MB, free: 2.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.01322, allocations: 2.081 MB / 397.3 MB, free: 15.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.749e-05/0.01327, allocations: 89.05 kB / 397.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.28e-05/0.01332, allocations: 20.48 kB / 397.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.588e-05/0.01337, allocations: 36.48 kB / 397.4 MB, free: 15.63 MB / 378.7 MB Notification: Performance of SimCode: time 4.1e-07/0.01337, allocations: 0 / 397.4 MB, free: 15.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0204/0.03377, allocations: 5.076 MB / 402.5 MB, free: 10.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.068/7.101, allocations: 4.062 kB / 402.5 MB, free: 10.59 MB / 378.7 MB " [Timeout remaining time 653] (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: 8.936253440566361] Failed to read output from testmodel.py, exit status != 0: 7.188614120706916 7.199770516 7.189557095 Calling exit ...