Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.TIRTest.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.001599/0.001599, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001454/0.001454, allocations: 217.3 kB / 22.25 MB, free: 5.125 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 7.973 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.01627/0.01627, allocations: 3.267 MB / 315.7 MB, free: 15.92 MB / 254.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.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",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.002051/0.002051, allocations: 59.91 kB / 439.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1127, allocations: 54.38 MB / 493.9 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002466/0.1152, allocations: 0.7628 MB / 494.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.1166, allocations: 0.8296 MB / 495.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.29e-05/0.1167, allocations: 0 / 495.5 MB, free: 4.48 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:301:3-326:14:writable] Warning: Pure function 'ExternData.TIRFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003422/0.117, allocations: 23.86 kB / 495.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.1171, allocations: 27.91 kB / 495.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.565e-05/0.1172, allocations: 3.938 kB / 495.6 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.068e-05/0.1172, allocations: 12 kB / 495.6 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.341e-05/0.1173, allocations: 3.984 kB / 495.6 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.655e-05/0.1173, allocations: 15.92 kB / 495.6 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1175, allocations: 8 kB / 495.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.1175, allocations: 0 / 495.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.425e-05/0.1176, allocations: 19.94 kB / 495.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.995e-05/0.1176, allocations: 11.92 kB / 495.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.062e-05/0.1176, allocations: 3.938 kB / 495.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000167/0.1178, allocations: 31.91 kB / 495.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.1178, allocations: 0 / 495.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1178, allocations: 0 / 495.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1178, allocations: 3.938 kB / 495.7 MB, free: 4.316 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005387/0.1184, allocations: 266.3 kB / 496 MB, free: 4.023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.1184, allocations: 8.031 kB / 496 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.1185, allocations: 30.75 kB / 496 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.377e-05/0.1185, allocations: 4.938 kB / 496 MB, free: 3.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1187, allocations: 114.5 kB / 496.1 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.1187, allocations: 4.375 kB / 496.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-06/0.1187, allocations: 384 / 496.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.1188, allocations: 43.92 kB / 496.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1188, allocations: 7.938 kB / 496.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1188, allocations: 0 / 496.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1189, allocations: 0 / 496.2 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.012e-05/0.1189, allocations: 11.94 kB / 496.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005191/0.1194, allocations: 454.6 kB / 496.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.1195, allocations: 169.1 kB / 496.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.308e-05/0.1196, allocations: 80.14 kB / 496.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.632e-05/0.1196, allocations: 75.28 kB / 496.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.764e-05/0.1197, allocations: 109.8 kB / 497 MB, free: 2.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.1197, allocations: 0 / 497 MB, free: 2.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.474e-05/0.1198, allocations: 29.64 kB / 497.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.1199, allocations: 138.7 kB / 497.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.12, allocations: 117.8 kB / 497.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.81e-05/0.1201, allocations: 25.7 kB / 497.3 MB, free: 2.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.376e-05/0.1201, allocations: 84.14 kB / 497.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-06/0.1201, allocations: 0 / 497.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.192e-05/0.1202, allocations: 9.719 kB / 497.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1203, allocations: 318.8 kB / 497.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.11e-06/0.1203, allocations: 0 / 497.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.1203, allocations: 8.031 kB / 497.8 MB, free: 2.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.329e-05/0.1204, allocations: 79.22 kB / 497.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.489e-05/0.1204, allocations: 75.28 kB / 497.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.793e-05/0.1205, allocations: 37.62 kB / 497.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.1205, allocations: 79.28 kB / 498 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.613e-05/0.1206, allocations: 83.22 kB / 498.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.903e-05/0.1206, allocations: 154.5 kB / 498.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.254e-05/0.1207, allocations: 79.28 kB / 498.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.465e-05/0.1207, allocations: 150.7 kB / 498.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.633e-05/0.1208, allocations: 91.23 kB / 498.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.1209, allocations: 75.28 kB / 498.6 MB, free: 1.148 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001433/0.121, allocations: 264.3 kB / 498.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.1211, allocations: 112.9 kB / 499 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.027e-05/0.1212, allocations: 112.4 kB / 499.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.319e-05/0.1213, allocations: 176.3 kB / 499.3 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001029/0.1214, allocations: 188.2 kB / 499.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.153e-05/0.1214, allocations: 176.3 kB / 499.7 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003552/0.1218, allocations: 388.2 kB / 0.4883 GB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.875e-05/0.1219, allocations: 105 kB / 0.4884 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.629e-05/0.1219, allocations: 101 kB / 0.4885 GB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.122, allocations: 192.2 kB / 0.4887 GB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001173/0.1222, allocations: 180.3 kB / 0.4889 GB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.913e-05/0.1222, allocations: 180.2 kB / 0.489 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001012/0.1223, allocations: 184.3 kB / 0.4892 GB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.1226, allocations: 315.6 kB / 0.4895 GB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.649e-05/0.1226, allocations: 101 kB / 0.4896 GB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1227, allocations: 188.1 kB / 0.4898 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.1229, allocations: 101 kB / 0.4899 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.123, allocations: 188.2 kB / 0.4901 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.239e-05/0.123, allocations: 105 kB / 0.4902 GB, free: 13.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.497e-05/0.1231, allocations: 95.27 kB / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1231, allocations: 0 / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003597/0.1235, allocations: 4 kB / 0.4903 GB, free: 13.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001143/0.1246, allocations: 0.8866 MB / 0.4911 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.495e-05/0.1247, allocations: 0 / 0.4911 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1247, allocations: 0 / 0.4911 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.573e-06/0.1247, allocations: 0 / 0.4911 GB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008164/0.1255, allocations: 463.6 kB / 0.4916 GB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.1271, allocations: 1.614 MB / 0.4931 GB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004761/0.1276, allocations: 0.6729 MB / 0.4938 GB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.769e-05/0.1276, allocations: 4 kB / 0.4938 GB, free: 9.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.121e-05/0.1277, allocations: 11.44 kB / 0.4938 GB, free: 9.816 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1277, allocations: 0 / 0.4938 GB, free: 9.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.1584, allocations: 1.641 MB / 0.4954 GB, free: 8.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.59, allocations: 11.69 kB / 0.4954 GB, free: 8.305 MB / 366.1 MB " [Timeout remaining time 648] (rm -f ExternData_ExternData.Examples.TIRTest.pipe ; mkfifo ExternData_ExternData.Examples.TIRTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.TIRTest.pipe >> ../files/ExternData_ExternData.Examples.TIRTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.TIRTest_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_TIRTest.fmu > ExternData_ExternData.Examples.TIRTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.55645989900222] Failed to read output from testmodel.py, exit status != 0: 11.697733394998068 11.992322282 11.871199247 Calling exit ...