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.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.005067/0.005067, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001085/0.001085, allocations: 195.1 kB / 16.67 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01516/0.01516, allocations: 2.948 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 71.88 kB / 405.8 MB, free: 29.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07686/0.07805, allocations: 50.33 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002154/0.08024, allocations: 0.7465 MB / 456.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009374/0.08119, allocations: 0.7348 MB / 457.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.213e-05/0.08124, allocations: 0 / 457.6 MB, free: 9.383 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.0002557/0.08151, allocations: 27.91 kB / 457.6 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000117/0.08164, allocations: 27.86 kB / 457.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.215e-05/0.08166, allocations: 0 / 457.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.396e-05/0.08173, allocations: 19.92 kB / 457.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.408e-05/0.08178, allocations: 4 kB / 457.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.663e-05/0.08181, allocations: 11.92 kB / 457.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.08194, allocations: 7.938 kB / 457.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.08196, allocations: 4 kB / 457.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.147e-05/0.08202, allocations: 16 kB / 457.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.316e-05/0.08204, allocations: 3.984 kB / 457.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.08207, allocations: 15.92 kB / 457.7 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.0822, allocations: 32.14 kB / 457.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.08221, allocations: 0 / 457.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.08222, allocations: 0 / 457.8 MB, free: 9.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.08223, allocations: 0 / 457.8 MB, free: 9.215 MB / 334.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.0003823/0.08261, allocations: 339.3 kB / 458.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.08267, allocations: 15.83 kB / 458.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.08271, allocations: 38.69 kB / 458.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.561e-05/0.08274, allocations: 0.9375 kB / 458.1 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.0829, allocations: 180.3 kB / 458.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.08292, allocations: 4.375 kB / 458.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.364e-06/0.08294, allocations: 384 / 458.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.977e-05/0.08303, allocations: 43.98 kB / 458.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.08305, allocations: 3.938 kB / 458.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-06/0.08306, allocations: 0 / 458.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.08307, allocations: 0 / 458.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.044e-05/0.08309, allocations: 7.938 kB / 458.4 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003985/0.0835, allocations: 483.6 kB / 458.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.718e-05/0.0836, allocations: 169.1 kB / 459 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.486e-05/0.08364, allocations: 80.14 kB / 459.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.08367, allocations: 79.28 kB / 459.2 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.08372, allocations: 113.8 kB / 459.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.08373, allocations: 0 / 459.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 6.852e-05/0.0838, allocations: 33.64 kB / 459.3 MB, free: 7.461 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.08386, allocations: 126.7 kB / 459.4 MB, free: 7.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.72e-05/0.08396, allocations: 121.8 kB / 459.6 MB, free: 7.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.08398, allocations: 25.7 kB / 459.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.423e-05/0.08402, allocations: 80.14 kB / 459.7 MB, free: 7.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-06/0.08403, allocations: 7.938 kB / 459.7 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/0.08405, allocations: 13.72 kB / 459.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.08414, allocations: 314.8 kB / 460 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.626e-06/0.08415, allocations: 3.938 kB / 460 MB, free: 6.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.415e-06/0.08416, allocations: 0 / 460 MB, free: 6.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.853e-05/0.08419, allocations: 83.2 kB / 460.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/0.08422, allocations: 75.28 kB / 460.1 MB, free: 6.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.506e-05/0.08428, allocations: 29.7 kB / 460.2 MB, free: 6.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.08431, allocations: 83.28 kB / 460.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.08434, allocations: 83.22 kB / 460.3 MB, free: 6.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.532e-05/0.08439, allocations: 150.6 kB / 460.5 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.257e-05/0.08442, allocations: 75.28 kB / 460.6 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.607e-05/0.08447, allocations: 158.6 kB / 460.7 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.423e-05/0.08455, allocations: 83.3 kB / 460.8 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.08458, allocations: 87.2 kB / 460.9 MB, free: 5.832 MB / 334.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 9.247e-05/0.08468, allocations: 265 kB / 461.1 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.185e-05/0.08474, allocations: 105 kB / 461.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.08479, allocations: 108.5 kB / 461.3 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-05/0.08484, allocations: 184.2 kB / 461.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.195e-05/0.0849, allocations: 184.2 kB / 461.7 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.863e-05/0.08496, allocations: 188.1 kB / 461.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.08516, allocations: 409.2 kB / 462.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.211e-05/0.0852, allocations: 101 kB / 462.4 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.839e-05/0.08523, allocations: 104.9 kB / 462.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.398e-05/0.08529, allocations: 188.2 kB / 462.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-05/0.08535, allocations: 184.2 kB / 462.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.432e-05/0.0854, allocations: 176.3 kB / 463 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.216e-05/0.08546, allocations: 184.2 kB / 463.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.08559, allocations: 315.7 kB / 463.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.727e-05/0.08567, allocations: 186 kB / 463.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.107e-05/0.08574, allocations: 176.3 kB / 463.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.936e-05/0.08584, allocations: 116.9 kB / 464 MB, free: 2.512 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.08591, allocations: 180.3 kB / 464.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.08595, allocations: 101 kB / 464.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.437e-05/0.08601, allocations: 91.27 kB / 464.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08601, allocations: 0 / 464.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002603/0.08628, allocations: 11.94 kB / 464.4 MB, free: 2.121 MB / 334.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.0006314/0.08692, allocations: 0.8872 MB / 465.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 4.603e-05/0.08697, allocations: 0 / 465.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.08698, allocations: 0 / 465.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.08699, allocations: 0 / 465.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.08749, allocations: 467.6 kB / 465.7 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.08853, allocations: 1.598 MB / 467.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.08875, allocations: 0.6805 MB / 468 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.065e-05/0.08878, allocations: 4 kB / 468 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.369e-05/0.08882, allocations: 15.42 kB / 468 MB, free: 14.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.08883, allocations: 4 kB / 468 MB, free: 14.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.1067, allocations: 1.496 MB / 469.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.856/7.963, allocations: 9.969 kB / 469.5 MB, free: 12.94 MB / 350.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)