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.008409/0.008409, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001304/0.001304, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01649/0.01649, allocations: 2.958 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 63.89 kB / 405.8 MB, free: 29.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08353, allocations: 50.33 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.00329/0.08686, allocations: 1.673 MB / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.0898, allocations: 1.612 MB / 459.4 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.08996, allocations: 4 kB / 459.4 MB, free: 7.551 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.0004246/0.09039, allocations: 43.77 kB / 459.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004792/0.09089, allocations: 115.5 kB / 459.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.09121, allocations: 99.77 kB / 459.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.09141, allocations: 99.7 kB / 459.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.799e-05/0.09152, allocations: 19.03 kB / 459.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.09163, allocations: 43.84 kB / 459.8 MB, free: 7.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001958/0.09183, allocations: 39.78 kB / 459.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.09187, allocations: 8 kB / 459.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003693/0.09224, allocations: 207.8 kB / 460 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.097e-05/0.09233, allocations: 19.91 kB / 460.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.073e-05/0.09242, allocations: 51.73 kB / 460.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004696/0.09289, allocations: 267.4 kB / 460.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.09291, allocations: 0 / 460.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.09292, allocations: 4 kB / 460.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.09294, allocations: 0 / 460.4 MB, free: 6.551 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.0008056/0.09375, allocations: 485.5 kB / 460.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.09381, allocations: 11.89 kB / 460.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.027e-05/0.09387, allocations: 34.75 kB / 460.9 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.571e-05/0.09393, allocations: 12.83 kB / 460.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003867/0.09432, allocations: 208.1 kB / 461.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.09435, allocations: 8.375 kB / 461.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.09438, allocations: 11.88 kB / 461.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.09464, allocations: 99.36 kB / 461.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.09466, allocations: 4 kB / 461.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.09467, allocations: 0 / 461.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.09469, allocations: 0 / 461.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.09483, allocations: 55.97 kB / 461.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004307/0.09527, allocations: 349.5 kB / 461.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.09554, allocations: 105.2 kB / 461.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.09566, allocations: 61.75 kB / 461.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.09568, allocations: 7.938 kB / 461.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.09589, allocations: 142.8 kB / 461.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.09591, allocations: 0 / 461.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004756/0.09639, allocations: 243.2 kB / 462.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.09645, allocations: 110.8 kB / 462.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.0966, allocations: 160.4 kB / 462.4 MB, free: 4.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.09663, allocations: 25.7 kB / 462.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.09669, allocations: 100.1 kB / 462.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.09673, allocations: 31.55 kB / 462.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.09679, allocations: 25.72 kB / 462.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.09691, allocations: 322.8 kB / 462.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.138e-05/0.09701, allocations: 43.92 kB / 463 MB, free: 3.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.09713, allocations: 65.77 kB / 463 MB, free: 3.594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.09735, allocations: 165.3 kB / 463.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.09736, allocations: 0 / 463.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003198/0.09769, allocations: 203.1 kB / 463.4 MB, free: 3.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.756e-05/0.09776, allocations: 37.7 kB / 463.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.09778, allocations: 0 / 463.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.09779, allocations: 0 / 463.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.008e-05/0.09787, allocations: 15.92 kB / 463.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.09789, allocations: 8 kB / 463.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.728e-05/0.09797, allocations: 11.88 kB / 463.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.09799, allocations: 4 kB / 463.5 MB, free: 3.121 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 (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.0001308/0.09813, allocations: 167.8 kB / 463.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.623e-05/0.09818, allocations: 23.73 kB / 463.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.09822, allocations: 12.66 kB / 463.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.09823, allocations: 4 kB / 463.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.09824, allocations: 0 / 463.7 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.09825, allocations: 7.938 kB / 463.7 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001836/0.09843, allocations: 217.6 kB / 463.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.09845, allocations: 4 kB / 463.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.281e-05/0.0985, allocations: 8 kB / 463.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.09851, allocations: 0 / 463.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.09853, allocations: 4 kB / 463.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.09854, allocations: 0 / 463.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.09855, allocations: 0 / 463.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003863/0.09894, allocations: 271.4 kB / 464.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.759e-05/0.09902, allocations: 96.91 kB / 464.3 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.013e-05/0.09905, allocations: 4 kB / 464.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.621e-05/0.09912, allocations: 4 kB / 464.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/0.09917, allocations: 15.92 kB / 464.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.0992, allocations: 4 kB / 464.3 MB, free: 2.184 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.694e-05/0.0993, allocations: 125.7 kB / 464.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.09931, allocations: 0 / 464.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.09964, allocations: 83.92 kB / 464.5 MB, free: 1.98 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,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.001391/0.101, allocations: 1.121 MB / 465.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003457/0.1014, allocations: 211.2 kB / 465.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1014, allocations: 0 / 465.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.1016, allocations: 139.4 kB / 466 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002559/0.1019, allocations: 23.58 kB / 466 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.1042, allocations: 1.932 MB / 467.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002823/0.1045, allocations: 0.7117 MB / 468.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.325e-05/0.1045, allocations: 12.42 kB / 468.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.918e-05/0.1046, allocations: 39.41 kB / 468.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1046, allocations: 4 kB / 468.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02187/0.1265, allocations: 4.552 MB / 473.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.635, allocations: 4.062 kB / 473.2 MB, free: 9.176 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)