Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTest.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.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",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.007089/0.007089, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001375/0.001375, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.486/1.486, 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.0166/0.0166, allocations: 2.962 MB / 293.5 MB, free: 11.8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 61.88 kB / 405.8 MB, free: 29.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08358/0.0848, allocations: 50.34 MB / 456.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003173/0.08802, allocations: 1.665 MB / 457.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002229/0.09028, allocations: 1.6 MB / 459.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.011e-05/0.09037, allocations: 0 / 459.4 MB, free: 7.746 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:250:3-279:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.09069, allocations: 39.72 kB / 459.4 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003464/0.09105, allocations: 131.5 kB / 459.5 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.09131, allocations: 79.78 kB / 459.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.09146, allocations: 91.7 kB / 459.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.051e-05/0.09156, allocations: 16.48 kB / 459.7 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.887e-05/0.09165, allocations: 39.8 kB / 459.8 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.09182, allocations: 39.84 kB / 459.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.09185, allocations: 7.984 kB / 459.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002762/0.09213, allocations: 203.8 kB / 460 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.555e-05/0.09221, allocations: 23.92 kB / 460 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.09228, allocations: 43.73 kB / 460.1 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.09261, allocations: 239.2 kB / 460.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09262, allocations: 0 / 460.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09263, allocations: 0 / 460.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.09264, allocations: 0 / 460.3 MB, free: 6.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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006164/0.09326, allocations: 484.2 kB / 460.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.0933, allocations: 11.89 kB / 460.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.421e-05/0.09334, allocations: 42.73 kB / 460.8 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.362e-05/0.09339, allocations: 12.89 kB / 460.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.0937, allocations: 212.1 kB / 461.1 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.09372, allocations: 384 / 461.1 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.662e-05/0.09375, allocations: 11.94 kB / 461.1 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.09395, allocations: 95.36 kB / 461.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.09397, allocations: 3.938 kB / 461.2 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.09399, allocations: 0 / 461.2 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.094, allocations: 8 kB / 461.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001328/0.09414, allocations: 51.91 kB / 461.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004103/0.09456, allocations: 321.6 kB / 461.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.0948, allocations: 105.2 kB / 461.6 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.09492, allocations: 65.72 kB / 461.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.463e-05/0.09495, allocations: 4 kB / 461.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.09517, allocations: 130.8 kB / 461.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.09518, allocations: 0 / 461.8 MB, free: 5.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005515/0.09574, allocations: 227.2 kB / 462.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.756e-05/0.09584, allocations: 110.8 kB / 462.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.09603, allocations: 164.5 kB / 462.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.09606, allocations: 29.7 kB / 462.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.09613, allocations: 92.14 kB / 462.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.59e-05/0.09619, allocations: 39.81 kB / 462.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.46e-05/0.09626, allocations: 21.72 kB / 462.5 MB, free: 4.332 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.09643, allocations: 334.8 kB / 462.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.683e-05/0.09652, allocations: 31.98 kB / 462.9 MB, free: 3.965 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.935e-05/0.09663, allocations: 53.69 kB / 462.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.09686, allocations: 145 kB / 463.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.09687, allocations: 0 / 463.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003451/0.09722, allocations: 191.2 kB / 463.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.37e-05/0.09729, allocations: 37.7 kB / 463.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.0973, allocations: 0 / 463.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.09733, allocations: 7.984 kB / 463.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.252e-05/0.09741, allocations: 11.94 kB / 463.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.09743, allocations: 3.938 kB / 463.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.037e-05/0.09752, allocations: 15.89 kB / 463.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.09755, allocations: 7.984 kB / 463.3 MB, free: 3.457 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001708/0.09773, allocations: 162.5 kB / 463.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.09777, allocations: 11.95 kB / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.09782, allocations: 16.72 kB / 463.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.09783, allocations: 0 / 463.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.09784, allocations: 0 / 463.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.09785, allocations: 3.938 kB / 463.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.09809, allocations: 213.5 kB / 463.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.0981, allocations: 0 / 463.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.115e-05/0.09816, allocations: 8 kB / 463.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.09816, allocations: 0 / 463.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.09819, allocations: 11.98 kB / 463.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.0982, allocations: 0 / 463.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.09821, allocations: 7.938 kB / 463.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004087/0.09862, allocations: 243.5 kB / 464 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.998e-05/0.09871, allocations: 93.05 kB / 464.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.504e-05/0.09876, allocations: 4 kB / 464.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.76e-05/0.09883, allocations: 4 kB / 464.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.075e-05/0.0989, allocations: 19.91 kB / 464.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.09893, allocations: 12.06 kB / 464.1 MB, free: 2.551 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.09905, allocations: 123.2 kB / 464.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09906, allocations: 0 / 464.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003809/0.09945, allocations: 75.75 kB / 464.3 MB, free: 2.355 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.001657/0.1011, allocations: 1.11 MB / 465.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003173/0.1014, allocations: 195.3 kB / 465.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1015, allocations: 0 / 465.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.1016, allocations: 131.4 kB / 465.7 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.1019, allocations: 27.92 kB / 465.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.1041, allocations: 1.869 MB / 467.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.1045, allocations: 0.7117 MB / 468.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.404e-05/0.1045, allocations: 12.42 kB / 468.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.247e-05/0.1046, allocations: 35.41 kB / 468.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1046, allocations: 0 / 468.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.1325, allocations: 4.357 MB / 472.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.998/8.131, allocations: 11.16 kB / 472.8 MB, free: 9.832 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.XMLTest.pipe ; mkfifo ExternData_ExternData.Examples.XMLTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTest.pipe >> ../files/ExternData_ExternData.Examples.XMLTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XMLTest_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_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1)