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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 109.7 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01872/0.01872, allocations: 2.989 MB / 305.7 MB, free: 6.812 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 67.89 kB / 425.4 MB, free: 21.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1165, allocations: 53.08 MB / 478.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002176/0.1186, allocations: 0.7626 MB / 479.2 MB, free: 40 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.1197, allocations: 0.7426 MB / 480 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.081e-05/0.1198, allocations: 0 / 480 MB, free: 15.29 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo:313:3-338:14:writable] Warning: Pure function 'ExternData.TIRFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.1201, allocations: 31.84 kB / 480 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.1202, allocations: 23.92 kB / 480 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.28e-05/0.1202, allocations: 0 / 480 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.451e-05/0.1203, allocations: 23.86 kB / 480.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.809e-05/0.1204, allocations: 3.984 kB / 480.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.311e-05/0.1204, allocations: 8 kB / 480.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.1205, allocations: 7.938 kB / 480.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.1205, allocations: 0 / 480.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.829e-05/0.1206, allocations: 16 kB / 480.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.481e-05/0.1206, allocations: 11.97 kB / 480.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.62e-05/0.1206, allocations: 11.88 kB / 480.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001238/0.1207, allocations: 23.92 kB / 480.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1208, allocations: 4 kB / 480.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1208, allocations: 0 / 480.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1208, allocations: 0 / 480.1 MB, free: 15.13 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.00044/0.1212, allocations: 343.3 kB / 480.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.354e-05/0.1213, allocations: 11.89 kB / 480.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.357e-05/0.1213, allocations: 30.75 kB / 480.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.1213, allocations: 0.9375 kB / 480.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/0.1215, allocations: 176.3 kB / 480.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.1215, allocations: 4.359 kB / 480.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.1216, allocations: 4.375 kB / 480.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.1217, allocations: 43.98 kB / 480.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.1217, allocations: 11.88 kB / 480.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.697e-06/0.1217, allocations: 0 / 480.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.1217, allocations: 0 / 480.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.753e-05/0.1217, allocations: 0 / 480.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004506/0.1222, allocations: 487.6 kB / 481.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.1223, allocations: 169.1 kB / 481.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.355e-05/0.1223, allocations: 80.14 kB / 481.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.72e-05/0.1224, allocations: 79.22 kB / 481.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.639e-05/0.1224, allocations: 117.8 kB / 481.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.1224, allocations: 0 / 481.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.257e-05/0.1225, allocations: 37.59 kB / 481.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/0.1226, allocations: 130.6 kB / 481.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.1227, allocations: 113.8 kB / 481.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.1228, allocations: 25.7 kB / 482 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.1228, allocations: 84.14 kB / 482 MB, free: 12.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-06/0.1228, allocations: 0 / 482 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/0.1229, allocations: 13.72 kB / 482.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.123, allocations: 318.8 kB / 482.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.841e-06/0.123, allocations: 0 / 482.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.147e-06/0.123, allocations: 8 kB / 482.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.213e-05/0.1231, allocations: 79.22 kB / 482.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.704e-05/0.1232, allocations: 75.28 kB / 482.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.484e-05/0.1232, allocations: 33.64 kB / 482.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.569e-05/0.1233, allocations: 79.28 kB / 482.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.749e-05/0.1233, allocations: 79.28 kB / 482.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.974e-05/0.1234, allocations: 150.6 kB / 482.9 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.995e-05/0.1234, allocations: 83.22 kB / 482.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001024/0.1235, allocations: 158.7 kB / 483.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.94e-05/0.1236, allocations: 79.22 kB / 483.2 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.224e-05/0.1237, allocations: 79.31 kB / 483.3 MB, free: 11.75 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.0001718/0.1239, allocations: 268.3 kB / 483.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-05/0.124, allocations: 105 kB / 483.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.598e-05/0.1241, allocations: 116.5 kB / 483.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.912e-05/0.1242, allocations: 180.2 kB / 483.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001125/0.1243, allocations: 180.2 kB / 484.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000113/0.1244, allocations: 184.3 kB / 484.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.1247, allocations: 409.2 kB / 484.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-05/0.1248, allocations: 104.9 kB / 484.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.055e-05/0.1248, allocations: 105 kB / 484.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.824e-05/0.1249, allocations: 180.2 kB / 485 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.1251, allocations: 184.3 kB / 485.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.16e-05/0.1251, allocations: 180.3 kB / 485.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.857e-05/0.1252, allocations: 180.2 kB / 485.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.1254, allocations: 319.6 kB / 485.9 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.1255, allocations: 182.1 kB / 486.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/0.1257, allocations: 184.2 kB / 486.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.1258, allocations: 108.9 kB / 486.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.1259, allocations: 176.3 kB / 486.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.414e-05/0.1259, allocations: 112.9 kB / 486.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.44e-05/0.126, allocations: 91.27 kB / 486.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.126, allocations: 0 / 486.7 MB, free: 8.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000309/0.1263, allocations: 7.938 kB / 486.7 MB, free: 8.043 MB / 350.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.0009227/0.1272, allocations: 0.8897 MB / 487.6 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.085e-05/0.1273, allocations: 3.938 kB / 487.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1273, allocations: 0 / 487.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.253e-06/0.1273, allocations: 0 / 487.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006217/0.1279, allocations: 471.4 kB / 488.1 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1295, allocations: 1.59 MB / 489.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.1298, allocations: 0.6805 MB / 490.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.111e-05/0.1298, allocations: 0 / 490.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/0.1299, allocations: 15.42 kB / 490.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1299, allocations: 0 / 490.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.1552, allocations: 1.508 MB / 491.9 MB, free: 2.852 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.854/8.009, allocations: 14.89 kB / 491.9 MB, free: 2.84 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.530668193940073] Failed to read output from testmodel.py, exit status != 0: 8.078680779319257 8.098895591 7.975257324 Calling exit ...