Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.INITest.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.INITest,fileNamePrefix="ExternData_ExternData_Examples_INITest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.INITest,fileNamePrefix="ExternData_ExternData_Examples_INITest",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.009077/0.009077, allocations: 102.5 kB / 15.73 MB, free: 6.066 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.002356/0.002356, allocations: 197 kB / 16.68 MB, free: 5.973 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.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01649/0.01649, allocations: 2.946 MB / 293.5 MB, free: 11.78 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002106/0.002106, allocations: 69.31 kB / 405.8 MB, free: 29.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09586/0.09798, allocations: 50.33 MB / 456.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.INITest): time 0.003812/0.1018, allocations: 1.548 MB / 457.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.1037, allocations: 1.019 MB / 458.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.723e-05/0.1038, allocations: 0 / 458.7 MB, free: 8.285 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo:79:3-102:14:writable] Warning: Pure function 'ExternData.INIFile' contains a call to impure function 'ExternData.Types.ExternINIFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003488/0.1042, allocations: 23.86 kB / 458.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003813/0.1046, allocations: 111.5 kB / 458.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.236e-05/0.1046, allocations: 7.984 kB / 458.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.621e-05/0.1047, allocations: 31.86 kB / 458.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.1048, allocations: 12.28 kB / 458.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.323e-05/0.1049, allocations: 15.92 kB / 458.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001532/0.105, allocations: 23.91 kB / 458.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.1051, allocations: 0 / 458.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.1053, allocations: 115.8 kB / 459 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/0.1053, allocations: 4 kB / 459 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.1054, allocations: 19.86 kB / 459 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.1056, allocations: 123.6 kB / 459.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1056, allocations: 0 / 459.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1056, allocations: 0 / 459.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1057, allocations: 0 / 459.2 MB, free: 7.805 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005825/0.1063, allocations: 383 kB / 459.5 MB, free: 7.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1063, allocations: 15.89 kB / 459.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.788e-05/0.1064, allocations: 42.69 kB / 459.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.973e-05/0.1064, allocations: 0.9375 kB / 459.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.1066, allocations: 188.2 kB / 459.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.1067, allocations: 4.375 kB / 459.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.1067, allocations: 384 / 459.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.1068, allocations: 53.62 kB / 459.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1068, allocations: 3.938 kB / 459.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1069, allocations: 0 / 459.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1069, allocations: 0 / 459.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.029e-05/0.107, allocations: 19.98 kB / 459.8 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000397/0.1074, allocations: 272.8 kB / 460.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.1076, allocations: 46.62 kB / 460.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.73e-05/0.1076, allocations: 24.94 kB / 460.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.1077, allocations: 0 / 460.2 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1077, allocations: 30.56 kB / 460.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.1077, allocations: 0 / 460.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002504/0.108, allocations: 77.55 kB / 460.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.108, allocations: 55.41 kB / 460.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1081, allocations: 117.8 kB / 460.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1082, allocations: 25.7 kB / 460.5 MB, free: 6.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.937e-05/0.1083, allocations: 88.12 kB / 460.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.1083, allocations: 7.906 kB / 460.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/0.1083, allocations: 13.72 kB / 460.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1085, allocations: 326.8 kB / 460.9 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.127e-05/0.1085, allocations: 4 kB / 460.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.369e-05/0.1086, allocations: 15.98 kB / 460.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.082e-05/0.1087, allocations: 32.78 kB / 461 MB, free: 5.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1087, allocations: 0 / 461 MB, free: 5.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001167/0.1088, allocations: 49.69 kB / 461 MB, free: 5.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1088, allocations: 6.656 kB / 461 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1088, allocations: 4 kB / 461 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.1089, allocations: 0 / 461 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.769e-05/0.1089, allocations: 7.984 kB / 461 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1089, allocations: 0 / 461 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.555e-05/0.109, allocations: 11.94 kB / 461 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-06/0.109, allocations: 4 kB / 461 MB, free: 5.68 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 (3): * Single equations (assignments): 3 * 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 8.423e-05/0.1091, allocations: 110.4 kB / 461.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.1091, allocations: 7.953 kB / 461.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.1091, allocations: 7.906 kB / 461.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1091, allocations: 3.984 kB / 461.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.1092, allocations: 4 kB / 461.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1092, allocations: 7.875 kB / 461.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.1094, allocations: 170 kB / 461.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1094, allocations: 0 / 461.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.1094, allocations: 8 kB / 461.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1094, allocations: 4 kB / 461.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.1094, allocations: 3.938 kB / 461.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1094, allocations: 0 / 461.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1094, allocations: 4 kB / 461.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.1096, allocations: 151.4 kB / 461.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.665e-05/0.1097, allocations: 89.11 kB / 461.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.1097, allocations: 0 / 461.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.02e-05/0.1098, allocations: 3.984 kB / 461.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.1098, allocations: 4 kB / 461.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.1098, allocations: 0 / 461.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.589e-05/0.1099, allocations: 95.2 kB / 461.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1099, allocations: 0 / 461.7 MB, free: 4.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002773/0.1102, allocations: 35.88 kB / 461.7 MB, free: 4.883 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 (3): * Single equations (assignments): 3 * 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.001287/0.1115, allocations: 0.9114 MB / 462.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.1116, allocations: 23.98 kB / 462.7 MB, free: 3.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1117, allocations: 7.938 kB / 462.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.267e-05/0.1117, allocations: 8 kB / 462.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.112, allocations: 15.86 kB / 462.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.1134, allocations: 1.284 MB / 464 MB, free: 2.602 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003076/0.1138, allocations: 0.6805 MB / 464.7 MB, free: 1.895 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.263e-05/0.1138, allocations: 8.172 kB / 464.7 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.657e-05/0.1139, allocations: 19.44 kB / 464.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1139, allocations: 0 / 464.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02583/0.1397, allocations: 2.582 MB / 467.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.265, allocations: 8.094 kB / 467.3 MB, free: 15.3 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.INITest.pipe ; mkfifo ExternData_ExternData.Examples.INITest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.INITest.pipe >> ../files/ExternData_ExternData.Examples.INITest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.INITest_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_INITest.fmu > ExternData_ExternData.Examples.INITest.pipe 2>&1)