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.001334/0.001334, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001496/0.001496, allocations: 217.4 kB / 22.25 MB, free: 5.078 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.52/1.52, allocations: 230.6 MB / 256 MB, free: 8.012 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.01509/0.01509, allocations: 3.271 MB / 315.7 MB, free: 15.82 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.002092/0.002092, allocations: 70.86 kB / 439.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0976/0.09969, allocations: 54.37 MB / 493.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002268/0.102, allocations: 0.7562 MB / 494.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.1032, allocations: 0.8334 MB / 495.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.158e-05/0.1032, allocations: 4 kB / 495.5 MB, free: 4.207 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.0002152/0.1035, allocations: 19.92 kB / 495.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.1036, allocations: 31.84 kB / 495.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.08e-05/0.1036, allocations: 0 / 495.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.485e-05/0.1037, allocations: 11.94 kB / 495.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.566e-05/0.1037, allocations: 4 kB / 495.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.1037, allocations: 15.91 kB / 495.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.1038, allocations: 8 kB / 495.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.676e-06/0.1038, allocations: 0 / 495.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.738e-05/0.1039, allocations: 16 kB / 495.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.667e-05/0.1039, allocations: 15.92 kB / 495.6 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.861e-05/0.1039, allocations: 0 / 495.6 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.1041, allocations: 39.78 kB / 495.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1041, allocations: 0 / 495.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1041, allocations: 0 / 495.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.1041, allocations: 0 / 495.7 MB, free: 4.047 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.0003642/0.1044, allocations: 262.3 kB / 495.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.1045, allocations: 8.031 kB / 496 MB, free: 3.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.724e-05/0.1045, allocations: 34.69 kB / 496 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.1046, allocations: 4.938 kB / 496 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.1047, allocations: 126.4 kB / 496.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.1047, allocations: 384 / 496.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.532e-06/0.1048, allocations: 4.375 kB / 496.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.1049, allocations: 39.98 kB / 496.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1049, allocations: 7.875 kB / 496.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.1049, allocations: 4 kB / 496.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.1049, allocations: 3.984 kB / 496.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.954e-05/0.1049, allocations: 4 kB / 496.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004207/0.1053, allocations: 450.7 kB / 496.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.1054, allocations: 169.1 kB / 496.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.744e-05/0.1055, allocations: 80.14 kB / 496.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.752e-05/0.1055, allocations: 79.28 kB / 496.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.977e-05/0.1056, allocations: 105.8 kB / 497 MB, free: 2.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.82e-07/0.1056, allocations: 4 kB / 497 MB, free: 2.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.664e-05/0.1057, allocations: 33.64 kB / 497.1 MB, free: 2.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.318e-05/0.1058, allocations: 130.6 kB / 497.2 MB, free: 2.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.1059, allocations: 121.8 kB / 497.3 MB, free: 2.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.1059, allocations: 29.7 kB / 497.4 MB, free: 2.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.106, allocations: 84.14 kB / 497.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-06/0.106, allocations: 0 / 497.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/0.106, allocations: 9.719 kB / 497.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1062, allocations: 322.9 kB / 497.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.298e-06/0.1062, allocations: 0 / 497.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.605e-06/0.1062, allocations: 0 / 497.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.457e-05/0.1062, allocations: 79.22 kB / 497.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.111e-05/0.1063, allocations: 75.28 kB / 497.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.5e-05/0.1063, allocations: 37.69 kB / 497.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.493e-05/0.1064, allocations: 83.22 kB / 498 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.226e-05/0.1064, allocations: 75.28 kB / 498.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.247e-05/0.1065, allocations: 154.6 kB / 498.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.128e-05/0.1065, allocations: 79.22 kB / 498.3 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.25e-05/0.1066, allocations: 150.7 kB / 498.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.567e-05/0.1067, allocations: 91.23 kB / 498.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.1067, allocations: 79.28 kB / 498.6 MB, free: 0.8711 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.0001437/0.1069, allocations: 268.3 kB / 498.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.311e-05/0.1069, allocations: 105 kB / 499 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.623e-05/0.107, allocations: 112.4 kB / 499.1 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.354e-05/0.1071, allocations: 180.3 kB / 499.3 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001196/0.1072, allocations: 184.3 kB / 499.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.167e-05/0.1073, allocations: 180.2 kB / 499.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.1076, allocations: 380.2 kB / 0.4883 GB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.957e-05/0.1076, allocations: 104.9 kB / 0.4884 GB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.433e-05/0.1076, allocations: 101 kB / 0.4885 GB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.817e-05/0.1077, allocations: 192.2 kB / 0.4887 GB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.1078, allocations: 184.2 kB / 0.4889 GB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.764e-05/0.1079, allocations: 180.3 kB / 0.489 GB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.107e-05/0.108, allocations: 180.2 kB / 0.4892 GB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.1082, allocations: 315.7 kB / 0.4895 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.1082, allocations: 109 kB / 0.4896 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.174e-05/0.1083, allocations: 176.3 kB / 0.4898 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.452e-05/0.1084, allocations: 108.9 kB / 0.4899 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.985e-05/0.1085, allocations: 180.2 kB / 0.4901 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.135e-05/0.1086, allocations: 108.9 kB / 0.4902 GB, free: 13.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.214e-05/0.1087, allocations: 91.28 kB / 0.4902 GB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1087, allocations: 0 / 0.4902 GB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.1089, allocations: 7.984 kB / 0.4903 GB, free: 13.29 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.0008437/0.1098, allocations: 0.8812 MB / 0.4911 GB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.799e-05/0.1098, allocations: 7.938 kB / 0.4911 GB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1098, allocations: 4 kB / 0.4911 GB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.1098, allocations: 0 / 0.4911 GB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005387/0.1103, allocations: 463.1 kB / 0.4916 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.1118, allocations: 1.606 MB / 0.4931 GB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.1121, allocations: 0.6805 MB / 0.4938 GB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.582e-05/0.1122, allocations: 12 kB / 0.4938 GB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.1122, allocations: 7.438 kB / 0.4938 GB, free: 9.539 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1122, allocations: 4 kB / 0.4938 GB, free: 9.535 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.142, allocations: 1.628 MB / 0.4954 GB, free: 8.039 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/10.94, allocations: 18.28 kB / 0.4954 GB, free: 8.027 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_TIRTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_TIRTest.fmu > ExternData_ExternData.Examples.TIRTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.682081708917394] Failed to read output from testmodel.py, exit status != 0: 11.040676866890863 11.256510624 11.149854856 Calling exit ...