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.0008753/0.0008753, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008504/0.0008504, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8957/0.8957, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.01037/0.01037, allocations: 2.244 MB / 261.4 MB, free: 10.99 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 385.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.379e-05/1.517e-05, allocations: 2.281 kB / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.001393/0.001408, allocations: 0.7521 MB / 386 MB, free: 11.65 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006641/0.002073, allocations: 0.8375 MB / 386.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.665e-05/0.002109, allocations: 4 kB / 386.9 MB, free: 10.8 MB / 362.7 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.0002452/0.002354, allocations: 19.81 kB / 386.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.002488, allocations: 31.84 kB / 386.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.115e-05/0.002499, allocations: 0 / 386.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.559e-05/0.002555, allocations: 19.91 kB / 387 MB, free: 10.73 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.784e-05/0.002593, allocations: 8 kB / 387 MB, free: 10.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.44e-05/0.002627, allocations: 11.94 kB / 387 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.015e-05/0.002687, allocations: 4 kB / 387 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.139e-05/0.002699, allocations: 0 / 387 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.489e-05/0.002763, allocations: 11.98 kB / 387 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.322e-05/0.002777, allocations: 4 kB / 387 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.863e-05/0.002795, allocations: 11.88 kB / 387 MB, free: 10.68 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.002905, allocations: 31.89 kB / 387 MB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.235e-06/0.002907, allocations: 0 / 387 MB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.002908, allocations: 0 / 387 MB, free: 10.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.002912, allocations: 0 / 387 MB, free: 10.65 MB / 362.7 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.0002794/0.003192, allocations: 266.2 kB / 387.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.00323, allocations: 8.031 kB / 387.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.662e-05/0.003257, allocations: 34.75 kB / 387.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.438e-05/0.003281, allocations: 12.89 kB / 387.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.404e-05/0.003365, allocations: 105.8 kB / 387.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.003376, allocations: 8.312 kB / 387.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-06/0.003381, allocations: 384 / 387.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.318e-05/0.003455, allocations: 43.98 kB / 387.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.003461, allocations: 4.125 kB / 387.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.003468, allocations: 384 / 387.5 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.003473, allocations: 8.125 kB / 387.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.672e-05/0.00349, allocations: 4 kB / 387.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002634/0.003753, allocations: 454.7 kB / 388 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.859e-05/0.003812, allocations: 173.1 kB / 388.1 MB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.529e-05/0.003837, allocations: 84.14 kB / 388.2 MB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.003858, allocations: 79.22 kB / 388.3 MB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.003891, allocations: 117.8 kB / 388.4 MB, free: 9.129 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 7.22e-07/0.003892, allocations: 0 / 388.4 MB, free: 9.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 5.107e-05/0.003943, allocations: 25.7 kB / 388.4 MB, free: 9.098 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.003985, allocations: 130.7 kB / 388.6 MB, free: 8.957 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/0.004067, allocations: 121.8 kB / 388.7 MB, free: 8.828 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.696e-06/0.004075, allocations: 25.7 kB / 388.7 MB, free: 8.797 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.626e-05/0.004102, allocations: 80.14 kB / 388.8 MB, free: 8.715 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.004103, allocations: 0 / 388.8 MB, free: 8.715 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.00412, allocations: 13.72 kB / 388.8 MB, free: 8.695 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.00419, allocations: 314.8 kB / 389.1 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.177e-06/0.004195, allocations: 0 / 389.1 MB, free: 8.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.865e-06/0.004198, allocations: 0 / 389.1 MB, free: 8.379 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.913e-05/0.004217, allocations: 79.22 kB / 389.2 MB, free: 8.301 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.777e-05/0.004234, allocations: 79.28 kB / 389.3 MB, free: 8.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.394e-05/0.004268, allocations: 33.62 kB / 389.3 MB, free: 8.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.004294, allocations: 87.28 kB / 389.4 MB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.004313, allocations: 75.28 kB / 389.5 MB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.887e-05/0.004351, allocations: 154.5 kB / 389.6 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.718e-05/0.004369, allocations: 79.28 kB / 389.7 MB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.655e-05/0.004405, allocations: 158.5 kB / 389.8 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.847e-05/0.004454, allocations: 79.23 kB / 389.9 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.004472, allocations: 83.22 kB / 390 MB, free: 7.477 MB / 362.7 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 7.446e-05/0.004546, allocations: 260.4 kB / 390.2 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.593e-05/0.004582, allocations: 112.9 kB / 390.4 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.004621, allocations: 108.5 kB / 390.5 MB, free: 6.977 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.484e-05/0.004666, allocations: 188.2 kB / 390.6 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.225e-05/0.004708, allocations: 180.2 kB / 390.8 MB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.892e-05/0.004747, allocations: 180.3 kB / 391 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001454/0.004893, allocations: 388.2 kB / 391.4 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-05/0.004916, allocations: 101 kB / 391.5 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.563e-05/0.004941, allocations: 108.9 kB / 391.6 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.69e-05/0.004978, allocations: 176.3 kB / 391.8 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002923/0.005271, allocations: 184.3 kB / 391.9 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.347e-05/0.005314, allocations: 188.2 kB / 392.1 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.33e-05/0.005357, allocations: 176.3 kB / 392.3 MB, free: 5.031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.619e-05/0.005454, allocations: 307.8 kB / 392.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.005488, allocations: 120.9 kB / 392.7 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.005533, allocations: 180.2 kB / 392.9 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.041e-05/0.005583, allocations: 101 kB / 393 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.005625, allocations: 184.2 kB / 393.2 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.005646, allocations: 101 kB / 393.3 MB, free: 4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.111e-05/0.005687, allocations: 95.58 kB / 393.4 MB, free: 3.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005687, allocations: 0 / 393.4 MB, free: 3.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001745/0.005862, allocations: 7.938 kB / 393.4 MB, free: 3.898 MB / 362.7 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.0004464/0.006308, allocations: 0.8864 MB / 394.3 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 3.447e-05/0.006343, allocations: 12 kB / 394.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.006344, allocations: 0 / 394.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-07/0.006345, allocations: 0 / 394.3 MB, free: 3.008 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.006665, allocations: 466.6 kB / 394.7 MB, free: 2.551 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008307/0.007496, allocations: 1.622 MB / 396.3 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.787e-05/0.007534, allocations: 63.28 kB / 396.4 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.326e-05/0.007577, allocations: 4 kB / 396.4 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.007613, allocations: 12.5 kB / 396.4 MB, free: 0.75 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.007613, allocations: 3.938 kB / 396.4 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01549/0.0231, allocations: 2.192 MB / 398.6 MB, free: 14.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.641/6.664, allocations: 6.75 kB / 398.6 MB, free: 14.65 MB / 378.7 MB " [Timeout remaining time 653] (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: 8.325299898162484] Failed to read output from testmodel.py, exit status != 0: 6.7430544858798385 6.751554161 6.746559872 Calling exit ...