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.001303/0.001303, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001541/0.001541, allocations: 215.5 kB / 22.25 MB, free: 5.262 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.457/1.457, allocations: 230.6 MB / 256 MB, free: 7.789 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.01505/0.01505, allocations: 3.268 MB / 315.7 MB, free: 15.62 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.002099/0.002099, allocations: 67.91 kB / 439.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09589/0.09799, allocations: 54.39 MB / 493.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002274/0.1003, allocations: 0.7446 MB / 494.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.1013, allocations: 0.8257 MB / 495.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.158e-05/0.1014, allocations: 4 kB / 495.5 MB, free: 3.887 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.0002101/0.1016, allocations: 23.88 kB / 495.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1017, allocations: 23.91 kB / 495.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.268e-05/0.1017, allocations: 4 kB / 495.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.572e-05/0.1018, allocations: 19.92 kB / 495.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.04e-05/0.1018, allocations: 0 / 495.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.255e-05/0.1019, allocations: 11.92 kB / 495.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.432e-05/0.1019, allocations: 7.938 kB / 495.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.1019, allocations: 0 / 495.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.15e-05/0.102, allocations: 27.92 kB / 495.6 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.102, allocations: 3.938 kB / 495.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.106e-05/0.102, allocations: 8 kB / 495.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.1021, allocations: 35.83 kB / 495.6 MB, free: 3.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1021, allocations: 0 / 495.6 MB, free: 3.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1021, allocations: 0 / 495.6 MB, free: 3.723 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.1021, allocations: 0 / 495.6 MB, free: 3.723 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.000358/0.1025, allocations: 254.3 kB / 495.9 MB, free: 3.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1025, allocations: 12.03 kB / 495.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.1026, allocations: 30.75 kB / 495.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.405e-05/0.1026, allocations: 0.9375 kB / 495.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000148/0.1028, allocations: 130.4 kB / 496 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.1028, allocations: 384 / 496 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.1028, allocations: 4.375 kB / 496 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.1029, allocations: 43.92 kB / 496.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.1029, allocations: 3.938 kB / 496.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1029, allocations: 4 kB / 496.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1029, allocations: 0 / 496.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.983e-05/0.1029, allocations: 4 kB / 496.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003945/0.1033, allocations: 450.7 kB / 496.5 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.1034, allocations: 169.1 kB / 496.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.952e-05/0.1035, allocations: 84.14 kB / 496.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.909e-05/0.1035, allocations: 75.28 kB / 496.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.071e-05/0.1036, allocations: 105.8 kB / 497 MB, free: 2.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.203e-06/0.1036, allocations: 0 / 497 MB, free: 2.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.243e-05/0.1037, allocations: 33.64 kB / 497 MB, free: 2.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.399e-05/0.1038, allocations: 134.7 kB / 497.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.1039, allocations: 121.8 kB / 497.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.54e-05/0.1039, allocations: 25.7 kB / 497.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/0.104, allocations: 84.14 kB / 497.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-06/0.104, allocations: 0 / 497.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.104, allocations: 13.72 kB / 497.4 MB, free: 1.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1041, allocations: 318.8 kB / 497.7 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-06/0.1041, allocations: 4.031 kB / 497.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-06/0.1041, allocations: 0 / 497.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.404e-05/0.1042, allocations: 79.22 kB / 497.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.333e-05/0.1042, allocations: 75.28 kB / 497.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.878e-05/0.1043, allocations: 37.62 kB / 497.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/0.1043, allocations: 86.41 kB / 498 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/0.1044, allocations: 75.28 kB / 498 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.958e-05/0.1044, allocations: 158.4 kB / 498.2 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.053e-05/0.1045, allocations: 75.28 kB / 498.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.207e-05/0.1045, allocations: 158.7 kB / 498.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.1046, allocations: 91.23 kB / 498.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.1047, allocations: 75.28 kB / 498.6 MB, free: 0.5547 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.0001488/0.1048, allocations: 268.3 kB / 498.8 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.1049, allocations: 108.9 kB / 498.9 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.827e-05/0.1049, allocations: 112.4 kB / 499.1 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.527e-05/0.105, allocations: 180.3 kB / 499.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.522e-05/0.1051, allocations: 188.2 kB / 499.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-05/0.1052, allocations: 176.3 kB / 499.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.1055, allocations: 384.2 kB / 500 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.527e-05/0.1055, allocations: 109 kB / 0.4883 GB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.291e-05/0.1056, allocations: 101 kB / 0.4884 GB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.665e-05/0.1056, allocations: 184.2 kB / 0.4886 GB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.431e-05/0.1057, allocations: 180.3 kB / 0.4888 GB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-05/0.1058, allocations: 188.2 kB / 0.489 GB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.899e-05/0.1059, allocations: 176.3 kB / 0.4891 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001747/0.1061, allocations: 311.7 kB / 0.4894 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.1061, allocations: 109 kB / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-05/0.1062, allocations: 184.2 kB / 0.4897 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.654e-05/0.1063, allocations: 101 kB / 0.4898 GB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.1064, allocations: 180.2 kB / 0.49 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.397e-05/0.1065, allocations: 109 kB / 0.4901 GB, free: 13.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.437e-05/0.1065, allocations: 95.27 kB / 0.4902 GB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1065, allocations: 0 / 0.4902 GB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002711/0.1068, allocations: 4 kB / 0.4902 GB, free: 12.98 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.000814/0.1076, allocations: 0.8827 MB / 0.491 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.551e-05/0.1077, allocations: 0 / 0.491 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1077, allocations: 0 / 0.491 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.1077, allocations: 0 / 0.491 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/0.1082, allocations: 471.6 kB / 0.4915 GB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001366/0.1096, allocations: 1.61 MB / 0.4931 GB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.582e-05/0.1096, allocations: 63.23 kB / 0.4931 GB, free: 9.859 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.265e-05/0.1096, allocations: 7.984 kB / 0.4931 GB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.1097, allocations: 11.44 kB / 0.4931 GB, free: 9.84 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1097, allocations: 0 / 0.4931 GB, free: 9.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03118/0.1409, allocations: 2.055 MB / 0.4952 GB, free: 7.914 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.05, allocations: 0 / 0.4952 GB, free: 7.914 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.524034792091697] Failed to read output from testmodel.py, exit status != 0: 11.155655999202281 11.1734337 11.068073755 Calling exit ...