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.001316/0.001316, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001338, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1472/0.1472, allocations: 2.939 MB / 293.3 MB, free: 3.223 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002395/0.002395, allocations: 63.91 kB / 354.8 MB, free: 3.621 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1037, allocations: 50.34 MB / 405.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.TIRTest): time 0.002188/0.1059, allocations: 0.7401 MB / 405.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009536/0.1069, allocations: 0.7387 MB / 406.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.13e-05/0.1069, allocations: 3.938 kB / 406.6 MB, free: 15.76 MB / 350.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.0002297/0.1071, allocations: 19.91 kB / 406.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.741e-05/0.1072, allocations: 31.84 kB / 406.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.299e-05/0.1073, allocations: 4 kB / 406.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.815e-05/0.1073, allocations: 19.94 kB / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.537e-05/0.1074, allocations: 0 / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.991e-05/0.1074, allocations: 7.938 kB / 406.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.1075, allocations: 19.86 kB / 406.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.1075, allocations: 4 kB / 406.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.794e-05/0.1076, allocations: 11.98 kB / 406.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.069e-05/0.1076, allocations: 4 kB / 406.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.181e-05/0.1076, allocations: 7.938 kB / 406.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.775e-05/0.1077, allocations: 39.89 kB / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1077, allocations: 0 / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1077, allocations: 0 / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.1078, allocations: 4 kB / 406.8 MB, free: 15.59 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.0003264/0.1081, allocations: 339.7 kB / 407.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1081, allocations: 11.89 kB / 407.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.145e-05/0.1082, allocations: 30.75 kB / 407.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.312e-05/0.1082, allocations: 4.938 kB / 407.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.1083, allocations: 172.2 kB / 407.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.1083, allocations: 4.375 kB / 407.3 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.292e-06/0.1084, allocations: 8.297 kB / 407.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.972e-05/0.1084, allocations: 47.97 kB / 407.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1085, allocations: 3.938 kB / 407.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.091e-06/0.1085, allocations: 0 / 407.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1085, allocations: 0 / 407.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.1085, allocations: 7.938 kB / 407.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002887/0.1088, allocations: 479.6 kB / 407.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.561e-05/0.1089, allocations: 169.1 kB / 408 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.235e-05/0.1089, allocations: 80.14 kB / 408.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.1089, allocations: 79.22 kB / 408.2 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.867e-05/0.109, allocations: 113.8 kB / 408.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 2.725e-06/0.109, allocations: 4 kB / 408.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.627e-05/0.1091, allocations: 29.61 kB / 408.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.1091, allocations: 130.7 kB / 408.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.1093, allocations: 117.8 kB / 408.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.1093, allocations: 25.7 kB / 408.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.1093, allocations: 84.14 kB / 408.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.262e-06/0.1093, allocations: 0 / 408.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.835e-05/0.1094, allocations: 9.719 kB / 408.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1095, allocations: 318.8 kB / 409 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.921e-06/0.1095, allocations: 0 / 409 MB, free: 13.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.745e-06/0.1095, allocations: 3.969 kB / 409 MB, free: 13.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.721e-05/0.1096, allocations: 79.22 kB / 409.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.323e-05/0.1096, allocations: 79.28 kB / 409.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.669e-05/0.1096, allocations: 41.73 kB / 409.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.1097, allocations: 79.28 kB / 409.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.793e-05/0.1097, allocations: 79.28 kB / 409.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.641e-05/0.1098, allocations: 158.5 kB / 409.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.223e-05/0.1098, allocations: 75.31 kB / 409.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.185e-05/0.1099, allocations: 158.5 kB / 409.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.376e-05/0.11, allocations: 83.22 kB / 409.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.11, allocations: 75.28 kB / 409.9 MB, free: 12.21 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.0001108/0.1101, allocations: 276.3 kB / 410.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.196e-05/0.1102, allocations: 105 kB / 410.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.138e-05/0.1102, allocations: 104.5 kB / 410.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-05/0.1103, allocations: 180.2 kB / 410.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.758e-05/0.1104, allocations: 188.2 kB / 410.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.085e-05/0.1105, allocations: 180.2 kB / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.1107, allocations: 413.2 kB / 411.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.24e-05/0.1107, allocations: 101 kB / 411.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.26e-05/0.1108, allocations: 104.9 kB / 411.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.729e-05/0.1108, allocations: 184.2 kB / 411.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.1109, allocations: 184.1 kB / 411.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.742e-05/0.111, allocations: 180.3 kB / 412 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.848e-05/0.111, allocations: 180.3 kB / 412.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001212/0.1112, allocations: 319.6 kB / 412.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.1112, allocations: 190 kB / 412.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.152e-05/0.1113, allocations: 176.3 kB / 412.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.361e-05/0.1114, allocations: 105 kB / 413 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.1114, allocations: 188.2 kB / 413.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.1115, allocations: 101 kB / 413.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.004e-05/0.1115, allocations: 95.58 kB / 413.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1116, allocations: 0 / 413.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002563/0.1118, allocations: 4 kB / 413.4 MB, free: 8.508 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.0005901/0.1124, allocations: 0.8831 MB / 414.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.461e-05/0.1125, allocations: 4.422 kB / 414.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1125, allocations: 0 / 414.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.132e-06/0.1125, allocations: 0 / 414.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004432/0.1129, allocations: 463.2 kB / 414.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.1141, allocations: 1.61 MB / 416.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.1144, allocations: 0.6805 MB / 417 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.842e-05/0.1144, allocations: 4 kB / 417 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.045e-05/0.1144, allocations: 15.44 kB / 417 MB, free: 4.758 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1144, allocations: 0 / 417 MB, free: 4.758 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02005/0.1345, allocations: 1.453 MB / 418.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.559/7.694, allocations: 0 / 418.5 MB, free: 3.348 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)