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.0008496/0.0008497, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.004271/0.004271, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.348/1.348, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1326/0.1326, allocations: 2.949 MB / 294.4 MB, free: 3.941 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000294/0.000294, allocations: 8.219 kB / 356.6 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.08252, allocations: 51.36 MB / 407.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.001734/0.08429, allocations: 1.385 MB / 409.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.08637, allocations: 1.561 MB / 410.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.188e-05/0.08644, allocations: 0 / 410.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.08668, allocations: 43.78 kB / 410.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.08694, allocations: 99.64 kB / 411 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002044/0.08715, allocations: 63.88 kB / 411.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.08726, allocations: 75.83 kB / 411.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.952e-05/0.08735, allocations: 24.14 kB / 411.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.889e-05/0.08743, allocations: 35.8 kB / 411.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001461/0.08758, allocations: 31.84 kB / 411.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.08761, allocations: 4 kB / 411.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002616/0.08787, allocations: 195.7 kB / 411.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.392e-05/0.08794, allocations: 23.91 kB / 411.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.489e-05/0.08801, allocations: 65.44 kB / 411.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.08831, allocations: 227.7 kB / 411.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08833, allocations: 0 / 411.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.08833, allocations: 0 / 411.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.08834, allocations: 4 kB / 411.8 MB, free: 11.98 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005431/0.08889, allocations: 472.7 kB / 412.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.08893, allocations: 8.031 kB / 412.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.429e-05/0.08897, allocations: 38.75 kB / 412.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.503e-05/0.08901, allocations: 12.75 kB / 412.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.08921, allocations: 204.2 kB / 412.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.346e-06/0.08923, allocations: 384 / 412.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.08926, allocations: 15.92 kB / 412.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.08945, allocations: 95.38 kB / 412.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.08947, allocations: 3.938 kB / 412.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.08949, allocations: 7.938 kB / 412.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.08949, allocations: 0 / 412.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.08964, allocations: 55.97 kB / 412.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003628/0.09001, allocations: 317.6 kB / 413 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.09025, allocations: 101.1 kB / 413.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.09037, allocations: 65.83 kB / 413.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.09039, allocations: 0 / 413.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.09061, allocations: 142.9 kB / 413.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.09063, allocations: 0 / 413.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.000455/0.09109, allocations: 235.2 kB / 413.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.09115, allocations: 106.8 kB / 413.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.0913, allocations: 163.8 kB / 413.8 MB, free: 9.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.09132, allocations: 29.7 kB / 413.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.09137, allocations: 92.14 kB / 413.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.09141, allocations: 27.64 kB / 413.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.09145, allocations: 17.72 kB / 413.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.09156, allocations: 330.8 kB / 414.2 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.587e-05/0.09165, allocations: 35.97 kB / 414.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-05/0.09174, allocations: 53.7 kB / 414.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/0.09195, allocations: 164.9 kB / 414.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.09196, allocations: 0 / 414.5 MB, free: 8.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002994/0.09227, allocations: 191.2 kB / 414.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.09231, allocations: 37.69 kB / 414.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.09232, allocations: 0 / 414.7 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.09233, allocations: 3.938 kB / 414.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.524e-05/0.0924, allocations: 16 kB / 414.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.09242, allocations: 0 / 414.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.11e-05/0.09251, allocations: 23.83 kB / 414.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.09252, allocations: 4 kB / 414.8 MB, free: 8.645 MB / 350.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.0001206/0.09265, allocations: 164.8 kB / 414.9 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.768e-05/0.09268, allocations: 15.91 kB / 414.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.694e-05/0.09272, allocations: 12.72 kB / 415 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.09272, allocations: 0 / 415 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.09273, allocations: 0 / 415 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.09274, allocations: 8.266 kB / 415 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.0929, allocations: 209.6 kB / 415.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.09291, allocations: 0 / 415.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.342e-05/0.09297, allocations: 8 kB / 415.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.09298, allocations: 0 / 415.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.093, allocations: 11.97 kB / 415.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.09301, allocations: 4 kB / 415.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.09302, allocations: 0 / 415.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003579/0.09338, allocations: 255.4 kB / 415.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.09344, allocations: 96.94 kB / 415.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.09348, allocations: 8 kB / 415.5 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.674e-05/0.09356, allocations: 11.98 kB / 415.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/0.0936, allocations: 3.938 kB / 415.6 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.09363, allocations: 4 kB / 415.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.405e-05/0.09373, allocations: 126 kB / 415.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.09374, allocations: 7.938 kB / 415.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000298/0.09404, allocations: 75.98 kB / 415.8 MB, free: 7.535 MB / 350.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.001356/0.0954, allocations: 1.107 MB / 416.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002933/0.09571, allocations: 187.4 kB / 417.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.09572, allocations: 0 / 417.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.09588, allocations: 143.6 kB / 417.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.09611, allocations: 26.45 kB / 417.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.09813, allocations: 1.901 MB / 419.1 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.09837, allocations: 0.7004 MB / 419.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.432e-05/0.09843, allocations: 20.42 kB / 419.8 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.04e-05/0.0985, allocations: 31.42 kB / 419.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09851, allocations: 0 / 419.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3687/0.4672, allocations: 3.843 MB / 423.7 MB, free: 46.55 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.4673, allocations: 238.2 kB / 423.9 MB, free: 46.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/2.594, allocations: 1.312 kB / 423.9 MB, free: 46.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1)