Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTestInnerOuter.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.XMLTestInnerOuter,fileNamePrefix="ExternData_ExternData_Examples_XMLTestInnerOuter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTestInnerOuter,fileNamePrefix="ExternData_ExternData_Examples_XMLTestInnerOuter",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.0012/0.0012, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001173/0.001173, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.216/1.216, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1035/0.1035, allocations: 2.94 MB / 292.9 MB, free: 3.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 59.91 kB / 354.1 MB, free: 4.812 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08178, allocations: 50.35 MB / 404.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003061/0.08489, allocations: 1.732 MB / 406.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002171/0.08709, allocations: 1.608 MB / 407.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.52e-05/0.08718, allocations: 0 / 407.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002666/0.08747, allocations: 43.84 kB / 407.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.08781, allocations: 87.72 kB / 407.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.08804, allocations: 75.86 kB / 408 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.08817, allocations: 91.72 kB / 408.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.343e-05/0.08826, allocations: 20.19 kB / 408.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.178e-05/0.08834, allocations: 31.86 kB / 408.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.0885, allocations: 43.77 kB / 408.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.08853, allocations: 0 / 408.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002884/0.08882, allocations: 195.8 kB / 408.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.753e-05/0.08889, allocations: 23.91 kB / 408.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.581e-05/0.08896, allocations: 43.73 kB / 408.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.08933, allocations: 259.6 kB / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.08934, allocations: 0 / 408.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.08935, allocations: 8 kB / 408.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.08936, allocations: 0 / 408.7 MB, free: 14.15 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.000621/0.08998, allocations: 484.7 kB / 409.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.09003, allocations: 8.031 kB / 409.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.511e-05/0.09007, allocations: 34.73 kB / 409.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.09012, allocations: 12.84 kB / 409.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.09033, allocations: 212.1 kB / 409.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.09035, allocations: 384 / 409.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.09037, allocations: 11.94 kB / 409.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002086/0.09058, allocations: 103.3 kB / 409.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.0906, allocations: 7.984 kB / 409.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.09062, allocations: 0 / 409.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.09063, allocations: 4 kB / 409.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.09077, allocations: 55.97 kB / 409.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004044/0.09118, allocations: 341.6 kB / 409.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.09143, allocations: 109.3 kB / 410 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.09155, allocations: 61.75 kB / 410.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.09157, allocations: 3.938 kB / 410.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.09183, allocations: 142.8 kB / 410.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.09184, allocations: 0 / 410.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004573/0.0923, allocations: 251.1 kB / 410.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.09237, allocations: 106.8 kB / 410.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.09252, allocations: 164.4 kB / 410.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.09255, allocations: 29.7 kB / 410.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.662e-05/0.0926, allocations: 96.12 kB / 410.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.09264, allocations: 27.56 kB / 410.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.09269, allocations: 25.7 kB / 410.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.09281, allocations: 326.8 kB / 411.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.722e-05/0.0929, allocations: 43.98 kB / 411.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.685e-05/0.09299, allocations: 61.62 kB / 411.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.09319, allocations: 165.3 kB / 411.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.0932, allocations: 0 / 411.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003015/0.09351, allocations: 207.1 kB / 411.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.09355, allocations: 33.7 kB / 411.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.09356, allocations: 4 kB / 411.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.09358, allocations: 0 / 411.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.785e-05/0.09364, allocations: 11.98 kB / 411.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.09365, allocations: 0 / 411.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.925e-05/0.09374, allocations: 19.94 kB / 411.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.09375, allocations: 11.88 kB / 411.8 MB, free: 10.71 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 (component.timeTable.nextEventScaled,component.timeTable.nextEvent,$PRE.component.timeTable.nextEvent,component.timeTable.last,component.timeTable.b,component.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.00012/0.09388, allocations: 163.5 kB / 412 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.12e-05/0.09392, allocations: 11.91 kB / 412 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.09395, allocations: 16.7 kB / 412 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.09396, allocations: 0 / 412 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.09397, allocations: 4 kB / 412 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.09397, allocations: 3.938 kB / 412 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001651/0.09414, allocations: 225.5 kB / 412.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.09415, allocations: 0 / 412.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.925e-05/0.09421, allocations: 8 kB / 412.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.09421, allocations: 0 / 412.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.09423, allocations: 4 kB / 412.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.09424, allocations: 0 / 412.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09424, allocations: 0 / 412.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003717/0.09462, allocations: 275.4 kB / 412.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.09468, allocations: 93 kB / 412.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.24e-05/0.09472, allocations: 4 kB / 412.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.808e-05/0.09479, allocations: 8 kB / 412.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.09484, allocations: 11.92 kB / 412.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.09486, allocations: 7.938 kB / 412.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001006/0.09497, allocations: 123.2 kB / 412.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09497, allocations: 0 / 412.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.09527, allocations: 75.98 kB / 412.8 MB, free: 9.59 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,component.timeTable.a,component.timeTable.b,component.timeTable.last,component.timeTable.nextEvent,component.timeTable.nextEventScaled) * Number of discrete states: 6 (component.timeTable.nextEvent,component.timeTable.last,component.timeTable.nextEventScaled,component.timeTable.b,component.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.001362/0.09664, allocations: 1.135 MB / 413.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.09695, allocations: 199.3 kB / 414.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.09696, allocations: 0 / 414.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.09711, allocations: 143.3 kB / 414.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.09734, allocations: 19.94 kB / 414.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.09941, allocations: 1.945 MB / 416.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.09967, allocations: 0.7121 MB / 417 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.599e-05/0.09973, allocations: 16.41 kB / 417 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.435e-05/0.09981, allocations: 35.41 kB / 417 MB, free: 5.332 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.09982, allocations: 0 / 417 MB, free: 5.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.1274, allocations: 4.22 MB / 421.2 MB, free: 1.176 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/0.1276, allocations: 251.8 kB / 421.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/1.763, allocations: 4.062 kB / 421.5 MB, free: 0.918 MB / 350.1 MB (rm -f ExternData_ExternData.Examples.XMLTestInnerOuter.pipe ; mkfifo ExternData_ExternData.Examples.XMLTestInnerOuter.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTestInnerOuter.pipe >> ../files/ExternData_ExternData.Examples.XMLTestInnerOuter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTestInnerOuter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestInnerOuter.fmu > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1)