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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005621/0.005621, allocations: 95.02 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 199.5 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.1276/0.1276, allocations: 2.926 MB / 293.5 MB, free: 3.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.91 kB / 405.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2852, allocations: 50.33 MB / 456.1 MB, free: 27.93 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.001994/0.2873, allocations: 0.7595 MB / 456.9 MB, free: 27.47 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007943/0.2881, allocations: 0.7303 MB / 457.6 MB, free: 26.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.2881, allocations: 2.875 kB / 457.6 MB, free: 26.95 MB / 366.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.0002673/0.2884, allocations: 32.33 kB / 457.6 MB, free: 26.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.2885, allocations: 21.34 kB / 457.6 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.084e-05/0.2885, allocations: 0 / 457.6 MB, free: 26.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.224e-05/0.2886, allocations: 21.62 kB / 457.7 MB, free: 26.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.924e-05/0.2886, allocations: 11.23 kB / 457.7 MB, free: 26.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.989e-05/0.2887, allocations: 11.22 kB / 457.7 MB, free: 26.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.2888, allocations: 6.781 kB / 457.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.737e-06/0.2888, allocations: 3.281 kB / 457.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.697e-05/0.2889, allocations: 20.23 kB / 457.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.058e-05/0.2889, allocations: 0 / 457.7 MB, free: 26.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.2889, allocations: 14.89 kB / 457.7 MB, free: 26.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.877e-05/0.289, allocations: 35.02 kB / 457.8 MB, free: 26.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.289, allocations: 0 / 457.8 MB, free: 26.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.289, allocations: 0 / 457.8 MB, free: 26.85 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.289, allocations: 0 / 457.8 MB, free: 26.85 MB / 366.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.0002926/0.2893, allocations: 336.8 kB / 458.1 MB, free: 26.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2894, allocations: 13.42 kB / 458.1 MB, free: 26.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.266e-05/0.2894, allocations: 34.75 kB / 458.1 MB, free: 26.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.413e-05/0.2894, allocations: 0.9375 kB / 458.1 MB, free: 26.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.2896, allocations: 174.9 kB / 458.3 MB, free: 26.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.2896, allocations: 384 / 458.3 MB, free: 26.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.2896, allocations: 7.25 kB / 458.3 MB, free: 26.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.669e-05/0.2897, allocations: 43.02 kB / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.2897, allocations: 7.875 kB / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.813e-06/0.2897, allocations: 0 / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.2897, allocations: 3.281 kB / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.497e-05/0.2897, allocations: 3.094 kB / 458.4 MB, free: 26.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002591/0.29, allocations: 480 kB / 458.8 MB, free: 25.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.589e-05/0.29, allocations: 169.1 kB / 459 MB, free: 25.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.276e-05/0.2901, allocations: 80.14 kB / 459.1 MB, free: 25.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.2901, allocations: 82.41 kB / 459.2 MB, free: 25.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.2901, allocations: 109.8 kB / 459.3 MB, free: 25.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.413e-06/0.2901, allocations: 3.984 kB / 459.3 MB, free: 25.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.198e-05/0.2902, allocations: 36.72 kB / 459.3 MB, free: 25.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.46e-05/0.2902, allocations: 133.9 kB / 459.4 MB, free: 25.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.043e-05/0.2903, allocations: 113.2 kB / 459.6 MB, free: 24.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.448e-06/0.2903, allocations: 25.7 kB / 459.6 MB, free: 24.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.712e-05/0.2903, allocations: 83.2 kB / 459.7 MB, free: 24.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-06/0.2903, allocations: 3.984 kB / 459.7 MB, free: 24.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.614e-05/0.2903, allocations: 17.72 kB / 459.7 MB, free: 24.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.034e-05/0.2904, allocations: 317.5 kB / 460 MB, free: 24.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.518e-06/0.2904, allocations: 0 / 460 MB, free: 24.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.455e-06/0.2904, allocations: 0 / 460 MB, free: 24.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.143e-05/0.2904, allocations: 79.22 kB / 460.1 MB, free: 24.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.2904, allocations: 75.28 kB / 460.1 MB, free: 24.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.628e-05/0.2905, allocations: 28.39 kB / 460.2 MB, free: 24.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2905, allocations: 85.47 kB / 460.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.2905, allocations: 83.22 kB / 460.3 MB, free: 24.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.898e-05/0.2906, allocations: 160.9 kB / 460.5 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.287e-06/0.2906, allocations: 79.22 kB / 460.6 MB, free: 23.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.2906, allocations: 150.6 kB / 460.7 MB, free: 23.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.928e-05/0.2907, allocations: 82.28 kB / 460.8 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.2907, allocations: 75.28 kB / 460.9 MB, free: 23.6 MB / 366.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 5.367e-05/0.2907, allocations: 265.9 kB / 461.1 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.2908, allocations: 111.7 kB / 461.2 MB, free: 23.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.2908, allocations: 111.6 kB / 461.3 MB, free: 23.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/0.2908, allocations: 184.3 kB / 461.5 MB, free: 22.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.691e-05/0.2909, allocations: 180.2 kB / 461.7 MB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-05/0.2909, allocations: 187 kB / 461.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.291, allocations: 407.8 kB / 462.3 MB, free: 22.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.2911, allocations: 108.9 kB / 462.4 MB, free: 21.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.583e-05/0.2911, allocations: 108.4 kB / 462.5 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.05e-05/0.2911, allocations: 183.1 kB / 462.7 MB, free: 21.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.2911, allocations: 180.3 kB / 462.9 MB, free: 21.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.129e-05/0.2912, allocations: 176.3 kB / 463 MB, free: 21.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.09e-05/0.2912, allocations: 183.4 kB / 463.2 MB, free: 21.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.495e-05/0.2913, allocations: 314.2 kB / 463.5 MB, free: 20.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.2913, allocations: 181 kB / 463.7 MB, free: 20.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.2913, allocations: 183.6 kB / 463.9 MB, free: 20.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.071e-05/0.2914, allocations: 112 kB / 464 MB, free: 20.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.869e-05/0.2914, allocations: 180.2 kB / 464.2 MB, free: 20.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.2915, allocations: 108.9 kB / 464.3 MB, free: 20.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.755e-05/0.2915, allocations: 91.69 kB / 464.3 MB, free: 19.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2915, allocations: 0 / 464.3 MB, free: 19.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.2918, allocations: 5.969 kB / 464.4 MB, free: 19.95 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.0005001/0.2923, allocations: 0.8888 MB / 465.2 MB, free: 19.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.931e-05/0.2923, allocations: 6.969 kB / 465.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2923, allocations: 0 / 465.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.082e-06/0.2923, allocations: 3.938 kB / 465.3 MB, free: 19.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.2927, allocations: 464.8 kB / 465.7 MB, free: 18.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007615/0.2934, allocations: 1.601 MB / 467.3 MB, free: 17.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.02e-05/0.2936, allocations: 0.6795 MB / 468 MB, free: 16.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.765e-05/0.2936, allocations: 3.438 kB / 468 MB, free: 16.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.2936, allocations: 17.92 kB / 468 MB, free: 16.32 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2936, allocations: 0 / 468 MB, free: 16.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.3171, allocations: 1.502 MB / 469.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.197, allocations: 4.516 kB / 469.5 MB, free: 15.85 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.TIRTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_TIRTest.fmu > ExternData_ExternData.Examples.TIRTest.pipe 2>&1)