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.001318/0.001318, allocations: 116.1 kB / 17.16 MB, free: 6.023 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.001448/0.001448, allocations: 205.5 kB / 20.13 MB, free: 3.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.469/1.469, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.0201/0.0201, allocations: 3.268 MB / 312.8 MB, free: 2.129 MB / 238.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.TIRTest,fileNamePrefix="ExternData_ExternData_Examples_TIRTest",fmuType="cs",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.001987/0.001987, allocations: 65.42 kB / 435.1 MB, free: 39.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09229, allocations: 54.35 MB / 489.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002073/0.09437, allocations: 0.7446 MB / 490.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007728/0.09514, allocations: 0.7455 MB / 490.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.758e-05/0.09518, allocations: 0 / 490.9 MB, free: 12.5 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.000211/0.09539, allocations: 25.03 kB / 490.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.0955, allocations: 23.27 kB / 491 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.215e-05/0.09551, allocations: 4 kB / 491 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.065e-05/0.09556, allocations: 23.08 kB / 491 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.091e-05/0.0956, allocations: 9.094 kB / 491 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.788e-05/0.09563, allocations: 4.688 kB / 491 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.09574, allocations: 19.22 kB / 491 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.777e-06/0.09575, allocations: 1.75 kB / 491 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.771e-05/0.09579, allocations: 12.53 kB / 491 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.0958, allocations: 5.25 kB / 491 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.871e-05/0.09582, allocations: 5.562 kB / 491.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.09593, allocations: 35.98 kB / 491.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.09593, allocations: 0 / 491.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09593, allocations: 0 / 491.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.09594, allocations: 1.125 kB / 491.1 MB, free: 12.39 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.0002479/0.09618, allocations: 339 kB / 491.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.09622, allocations: 10.75 kB / 491.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.962e-05/0.09624, allocations: 192 / 491.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.73e-05/0.09626, allocations: 36.12 kB / 491.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.401e-05/0.09628, allocations: 2.312 kB / 491.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.604e-05/0.09637, allocations: 171.3 kB / 491.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.769e-06/0.09638, allocations: 4.375 kB / 491.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-06/0.09638, allocations: 2.031 kB / 491.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.763e-05/0.09645, allocations: 50.34 kB / 491.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.09646, allocations: 0 / 491.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.09646, allocations: 1.781 kB / 491.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.09647, allocations: 0 / 491.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.548e-05/0.09648, allocations: 10.59 kB / 491.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002059/0.09669, allocations: 479.6 kB / 492.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.974e-05/0.09673, allocations: 174.4 kB / 492.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.282e-05/0.09674, allocations: 80.14 kB / 492.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.09675, allocations: 75.28 kB / 492.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.09678, allocations: 107.2 kB / 492.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.09678, allocations: 4 kB / 492.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.166e-05/0.09684, allocations: 28.36 kB / 492.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.09686, allocations: 126.7 kB / 492.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.229e-05/0.09695, allocations: 119.3 kB / 492.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-06/0.09695, allocations: 25.7 kB / 492.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.735e-05/0.09697, allocations: 93.44 kB / 493 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-06/0.09697, allocations: 0 / 493 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.525e-05/0.09698, allocations: 11.09 kB / 493 MB, free: 10.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.611e-05/0.09702, allocations: 320.2 kB / 493.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.186e-06/0.09702, allocations: 0 / 493.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.595e-06/0.09703, allocations: 1.375 kB / 493.3 MB, free: 9.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.908e-06/0.09704, allocations: 75.28 kB / 493.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.09704, allocations: 75.28 kB / 493.5 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.766e-05/0.09709, allocations: 37.77 kB / 493.5 MB, free: 9.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.09711, allocations: 80.78 kB / 493.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.09712, allocations: 87.2 kB / 493.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.09715, allocations: 151.9 kB / 493.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.677e-06/0.09716, allocations: 76.66 kB / 493.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.09717, allocations: 154.6 kB / 494 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.615e-05/0.09723, allocations: 76.67 kB / 494.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.437e-06/0.09724, allocations: 84.61 kB / 494.2 MB, free: 9.109 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 4.837e-05/0.09728, allocations: 269.7 kB / 494.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.09732, allocations: 111.8 kB / 494.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.119e-05/0.09734, allocations: 105.9 kB / 494.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.982e-05/0.09736, allocations: 181.6 kB / 494.8 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-05/0.09738, allocations: 185.6 kB / 495 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.289e-05/0.09741, allocations: 184.2 kB / 495.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.09753, allocations: 413.3 kB / 495.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.09754, allocations: 106.3 kB / 495.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.136e-05/0.09756, allocations: 101 kB / 495.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.956e-05/0.09757, allocations: 181.6 kB / 496 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.0976, allocations: 181.6 kB / 496.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.936e-05/0.09762, allocations: 185.6 kB / 496.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.029e-05/0.09764, allocations: 184.2 kB / 496.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.176e-05/0.0977, allocations: 305.2 kB / 496.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.477e-05/0.09773, allocations: 191.4 kB / 497 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.083e-05/0.09776, allocations: 181.6 kB / 497.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.415e-05/0.09782, allocations: 110.3 kB / 497.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.572e-05/0.09784, allocations: 180.2 kB / 497.5 MB, free: 5.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.09786, allocations: 106.3 kB / 497.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.172e-05/0.0979, allocations: 93.2 kB / 497.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0979, allocations: 0 / 497.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.09815, allocations: 10.69 kB / 497.7 MB, free: 5.426 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.0004888/0.09864, allocations: 0.879 MB / 498.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.452e-05/0.09868, allocations: 9.312 kB / 498.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09868, allocations: 0 / 498.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.845e-06/0.09868, allocations: 5.359 kB / 498.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.09905, allocations: 467.7 kB / 499 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009356/0.09999, allocations: 1.605 MB / 0.4889 GB, free: 2.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001014/0.1001, allocations: 0.6755 MB / 0.4896 GB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.89e-05/0.1001, allocations: 2.75 kB / 0.4896 GB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.262e-05/0.1001, allocations: 10.19 kB / 0.4896 GB, free: 1.781 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1001, allocations: 0 / 0.4896 GB, free: 1.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.1187, allocations: 1.548 MB / 0.4911 GB, free: 0.8711 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.002/8.121, allocations: 6.281 kB / 0.4911 GB, free: 0.8672 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.745454377960414] Failed to read output from testmodel.py, exit status != 0: 8.255520448030438 8.27197951 8.172902035 Calling exit ...