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.0014/0.0014, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1843/0.1843, allocations: 2.933 MB / 293.3 MB, free: 3.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 63.91 kB / 354.8 MB, free: 3.605 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1077, allocations: 50.34 MB / 405.1 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003831/0.1116, allocations: 1.663 MB / 406.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.1142, allocations: 1.608 MB / 408.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.832e-05/0.1143, allocations: 0 / 408.4 MB, free: 13.93 MB / 350.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.0003649/0.1147, allocations: 43.8 kB / 408.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004301/0.1151, allocations: 123.4 kB / 408.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002954/0.1154, allocations: 95.72 kB / 408.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.1156, allocations: 103.8 kB / 408.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.1157, allocations: 20.2 kB / 408.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1158, allocations: 35.86 kB / 408.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001782/0.116, allocations: 47.77 kB / 408.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.413e-05/0.116, allocations: 11.94 kB / 408.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004355/0.1165, allocations: 199.8 kB / 409 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.752e-05/0.1166, allocations: 23.92 kB / 409.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.257e-05/0.1167, allocations: 51.72 kB / 409.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.1171, allocations: 259.7 kB / 409.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.1171, allocations: 0 / 409.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1172, allocations: 0 / 409.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1172, allocations: 0 / 409.4 MB, free: 12.93 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.000779/0.118, allocations: 484.7 kB / 409.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.118, allocations: 15.89 kB / 409.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.1181, allocations: 42.73 kB / 409.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.1181, allocations: 12.84 kB / 409.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.1184, allocations: 209.5 kB / 410.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1184, allocations: 8.375 kB / 410.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.1184, allocations: 7.938 kB / 410.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002333/0.1187, allocations: 99.31 kB / 410.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1187, allocations: 0 / 410.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.1187, allocations: 4 kB / 410.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.1187, allocations: 3.938 kB / 410.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.1189, allocations: 63.97 kB / 410.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004678/0.1194, allocations: 333.5 kB / 410.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.1196, allocations: 101.3 kB / 410.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001238/0.1198, allocations: 65.73 kB / 410.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.1198, allocations: 7.938 kB / 410.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.1201, allocations: 134.8 kB / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.1201, allocations: 0 / 410.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.00053/0.1207, allocations: 251.3 kB / 411.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.1207, allocations: 114.8 kB / 411.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.1209, allocations: 159.7 kB / 411.4 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.1209, allocations: 29.7 kB / 411.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.513e-05/0.121, allocations: 96.05 kB / 411.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.917e-05/0.121, allocations: 27.64 kB / 411.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.1211, allocations: 21.72 kB / 411.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1212, allocations: 334.8 kB / 411.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.957e-05/0.1213, allocations: 39.98 kB / 412 MB, free: 10.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.109e-05/0.1214, allocations: 53.92 kB / 412 MB, free: 9.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.1216, allocations: 165.2 kB / 412.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1216, allocations: 0 / 412.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003208/0.122, allocations: 211.1 kB / 412.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.122, allocations: 41.69 kB / 412.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.122, allocations: 0 / 412.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.122, allocations: 4 kB / 412.4 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.456e-05/0.1221, allocations: 11.94 kB / 412.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1221, allocations: 4.062 kB / 412.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.474e-05/0.1222, allocations: 19.92 kB / 412.5 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1222, allocations: 4 kB / 412.5 MB, free: 9.488 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.0001291/0.1224, allocations: 165.8 kB / 412.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.473e-05/0.1224, allocations: 19.81 kB / 412.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.1225, allocations: 12.72 kB / 412.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1225, allocations: 0 / 412.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1225, allocations: 4 kB / 412.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1225, allocations: 7.938 kB / 412.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.1227, allocations: 217.6 kB / 412.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1227, allocations: 0 / 412.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.894e-05/0.1228, allocations: 8 kB / 412.9 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1228, allocations: 4 kB / 412.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1228, allocations: 11.98 kB / 412.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1228, allocations: 0 / 412.9 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1228, allocations: 4 kB / 412.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000371/0.1232, allocations: 259.3 kB / 413.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.024e-05/0.1233, allocations: 96.94 kB / 413.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.1233, allocations: 8 kB / 413.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.84e-05/0.1234, allocations: 8 kB / 413.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.1235, allocations: 15.92 kB / 413.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.937e-05/0.1235, allocations: 4 kB / 413.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.1236, allocations: 125.7 kB / 413.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1236, allocations: 0 / 413.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.1239, allocations: 71.98 kB / 413.5 MB, free: 8.359 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.001601/0.1255, allocations: 1.126 MB / 414.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.1259, allocations: 203.3 kB / 414.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1259, allocations: 0 / 414.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.1261, allocations: 143.4 kB / 415 MB, free: 6.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.1264, allocations: 27.92 kB / 415 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.1288, allocations: 1.934 MB / 416.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.129, allocations: 0.6961 MB / 417.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.869e-05/0.1291, allocations: 16.42 kB / 417.6 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.599e-05/0.1291, allocations: 35.41 kB / 417.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1292, allocations: 0 / 417.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.1538, allocations: 4.442 MB / 422.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.729/7.883, allocations: 7.719 kB / 422.1 MB, free: 15.7 MB / 366.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)