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.0008684/0.0008684, allocations: 79.69 kB / 19.25 MB, free: 0.6211 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.000866/0.000866, allocations: 162.3 kB / 22.56 MB, free: 1.965 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.8856/0.8856, allocations: 177.1 MB / 202.9 MB, free: 5.703 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.009581/0.009581, allocations: 2.259 MB / 261.6 MB, free: 10.94 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 1.423e-06/1.423e-06, allocations: 0 / 385.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.273e-05/1.416e-05, allocations: 2.281 kB / 385.5 MB, free: 11.1 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.001953/0.001967, allocations: 1.694 MB / 387.2 MB, free: 9.391 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001485/0.003452, allocations: 1.722 MB / 388.9 MB, free: 7.66 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.559e-05/0.003508, allocations: 0 / 388.9 MB, free: 7.66 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.0002893/0.003797, allocations: 43.73 kB / 389 MB, free: 7.617 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003155/0.004113, allocations: 131.3 kB / 389.1 MB, free: 7.488 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.00428, allocations: 83.73 kB / 389.2 MB, free: 7.406 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.004393, allocations: 91.69 kB / 389.3 MB, free: 7.316 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.489e-05/0.004468, allocations: 12.22 kB / 389.3 MB, free: 7.301 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.508e-05/0.004543, allocations: 47.89 kB / 389.3 MB, free: 7.254 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.004649, allocations: 27.91 kB / 389.4 MB, free: 7.227 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.004666, allocations: 8 kB / 389.4 MB, free: 7.219 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.004864, allocations: 187.6 kB / 389.6 MB, free: 7.035 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002944/0.005158, allocations: 23.86 kB / 389.6 MB, free: 7.012 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.372e-05/0.005202, allocations: 31.91 kB / 389.6 MB, free: 6.98 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.005464, allocations: 259.4 kB / 389.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005467, allocations: 3.938 kB / 389.9 MB, free: 6.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.005468, allocations: 4 kB / 389.9 MB, free: 6.719 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.417e-06/0.005471, allocations: 0 / 389.9 MB, free: 6.719 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.0004513/0.005922, allocations: 407.1 kB / 390.3 MB, free: 6.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.005954, allocations: 12.02 kB / 390.3 MB, free: 6.273 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.262e-05/0.005977, allocations: 38.75 kB / 390.3 MB, free: 6.227 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.006008, allocations: 12.84 kB / 390.3 MB, free: 6.215 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.006167, allocations: 153.5 kB / 390.5 MB, free: 6.039 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.006175, allocations: 4.312 kB / 390.5 MB, free: 6.035 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.006187, allocations: 8.375 kB / 390.5 MB, free: 6.027 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.006344, allocations: 137.4 kB / 390.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.00635, allocations: 0 / 390.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.006358, allocations: 0 / 390.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.006362, allocations: 0 / 390.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.643e-05/0.006449, allocations: 85.61 kB / 390.7 MB, free: 5.785 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002715/0.00672, allocations: 280.8 kB / 391 MB, free: 5.465 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.006892, allocations: 119 kB / 391.1 MB, free: 5.324 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.697e-05/0.006959, allocations: 83.39 kB / 391.2 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.006973, allocations: 4 kB / 391.2 MB, free: 5.227 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001392/0.007112, allocations: 168.5 kB / 391.4 MB, free: 5.031 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 7.71e-07/0.007112, allocations: 0 / 391.4 MB, free: 5.031 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003064/0.007419, allocations: 298.6 kB / 391.6 MB, free: 4.715 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.007457, allocations: 106.8 kB / 391.7 MB, free: 4.586 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.49e-05/0.007552, allocations: 165.5 kB / 391.9 MB, free: 4.414 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.007564, allocations: 29.7 kB / 391.9 MB, free: 4.379 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/0.007599, allocations: 96.12 kB / 392 MB, free: 4.281 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.007624, allocations: 31.81 kB / 392.1 MB, free: 4.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.007656, allocations: 29.7 kB / 392.1 MB, free: 4.215 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.995e-05/0.007726, allocations: 326.8 kB / 392.4 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.889e-05/0.007785, allocations: 69.69 kB / 392.5 MB, free: 3.812 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-05/0.007845, allocations: 91.33 kB / 392.6 MB, free: 3.711 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.007963, allocations: 157.2 kB / 392.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.007965, allocations: 4 kB / 392.7 MB, free: 3.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001833/0.008148, allocations: 232.8 kB / 393 MB, free: 3.289 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.008173, allocations: 33.7 kB / 393 MB, free: 3.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.008177, allocations: 4 kB / 393 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.008187, allocations: 7.938 kB / 393 MB, free: 3.238 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.777e-05/0.008225, allocations: 15.98 kB / 393 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.008229, allocations: 320 / 393 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.254e-05/0.008272, allocations: 8 kB / 393 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.008281, allocations: 4 kB / 393 MB, free: 3.211 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 7.65e-05/0.008357, allocations: 163.5 kB / 393.2 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.008375, allocations: 15.91 kB / 393.2 MB, free: 3.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.866e-05/0.008393, allocations: 12.78 kB / 393.2 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.008395, allocations: 0 / 393.2 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.008398, allocations: 4 kB / 393.2 MB, free: 3.004 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.008401, allocations: 4 kB / 393.2 MB, free: 3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.008501, allocations: 164.6 kB / 393.4 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.008503, allocations: 4 kB / 393.4 MB, free: 2.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-05/0.008528, allocations: 11.98 kB / 393.4 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.008531, allocations: 4 kB / 393.4 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.008539, allocations: 0 / 393.4 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.008542, allocations: 11.92 kB / 393.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.008542, allocations: 0 / 393.4 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.008763, allocations: 285.1 kB / 393.7 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.401e-05/0.008787, allocations: 23.89 kB / 393.7 MB, free: 2.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.008806, allocations: 8 kB / 393.7 MB, free: 2.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.182e-05/0.008838, allocations: 8 kB / 393.7 MB, free: 2.414 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.947e-05/0.008868, allocations: 7.984 kB / 393.7 MB, free: 2.406 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.008879, allocations: 4 kB / 393.7 MB, free: 2.402 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.212e-05/0.008941, allocations: 122.2 kB / 393.9 MB, free: 2.285 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008941, allocations: 4 kB / 393.9 MB, free: 2.281 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002005/0.009141, allocations: 75.8 kB / 393.9 MB, free: 2.207 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.0008784/0.01002, allocations: 1.111 MB / 395.1 MB, free: 1.145 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002096/0.01023, allocations: 226.7 kB / 395.3 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01023, allocations: 8 kB / 395.3 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.376e-05/0.01031, allocations: 141.1 kB / 395.4 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.01047, allocations: 18.94 kB / 395.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.01218, allocations: 2.073 MB / 397.5 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.929e-05/0.01223, allocations: 93.06 kB / 397.6 MB, free: 14.4 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.196e-05/0.01227, allocations: 12.48 kB / 397.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/0.01232, allocations: 40.47 kB / 397.7 MB, free: 14.35 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01232, allocations: 3.938 kB / 397.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.03047, allocations: 5.066 MB / 402.7 MB, free: 9.309 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.073/7.103, allocations: 3.859 kB / 402.7 MB, free: 9.305 MB / 330.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: 9.013511596247554] Failed to read output from testmodel.py, exit status != 0: 7.186623074114323 7.35523809 7.347018036 Calling exit ...