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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.005391/0.005391, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001273/0.001273, allocations: 191 kB / 16.67 MB, free: 5.969 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01335/0.01335, allocations: 2.959 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001983, allocations: 66.53 kB / 405.8 MB, free: 29.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.09558, allocations: 50.34 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003203/0.09883, allocations: 1.676 MB / 457.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002694/0.1016, allocations: 1.612 MB / 459.4 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.128e-05/0.1017, allocations: 0 / 459.4 MB, free: 7.562 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.000363/0.1021, allocations: 35.78 kB / 459.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003786/0.1024, allocations: 127.4 kB / 459.6 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.1027, allocations: 91.77 kB / 459.6 MB, free: 7.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001714/0.1029, allocations: 103.7 kB / 459.7 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.103, allocations: 16.5 kB / 459.8 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.077e-05/0.1031, allocations: 43.84 kB / 459.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.1033, allocations: 35.84 kB / 459.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.1033, allocations: 8 kB / 459.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003107/0.1036, allocations: 211.7 kB / 460.1 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/0.1037, allocations: 23.92 kB / 460.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.469e-05/0.1038, allocations: 43.75 kB / 460.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.1041, allocations: 263.2 kB / 460.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1042, allocations: 7.984 kB / 460.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1042, allocations: 0 / 460.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.1042, allocations: 0 / 460.4 MB, free: 6.566 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.0006966/0.1049, allocations: 484.2 kB / 460.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1049, allocations: 15.89 kB / 460.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.055e-05/0.105, allocations: 38.75 kB / 460.9 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.459e-05/0.105, allocations: 12.89 kB / 460.9 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.1053, allocations: 212.2 kB / 461.1 MB, free: 5.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1054, allocations: 4.375 kB / 461.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.1054, allocations: 7.938 kB / 461.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002339/0.1056, allocations: 103.3 kB / 461.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1057, allocations: 0 / 461.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.1057, allocations: 0 / 461.2 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1057, allocations: 4 kB / 461.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.1058, allocations: 59.95 kB / 461.3 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004891/0.1063, allocations: 345.5 kB / 461.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002683/0.1066, allocations: 105.2 kB / 461.7 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.1068, allocations: 65.75 kB / 461.8 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.1068, allocations: 4 kB / 461.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.107, allocations: 142.7 kB / 462 MB, free: 4.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/0.107, allocations: 0 / 462 MB, free: 4.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005225/0.1076, allocations: 243.2 kB / 462.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.1076, allocations: 106.8 kB / 462.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.1078, allocations: 176.5 kB / 462.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.1079, allocations: 25.7 kB / 462.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.1079, allocations: 100.1 kB / 462.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.108, allocations: 31.89 kB / 462.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.573e-05/0.108, allocations: 25.7 kB / 462.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.1082, allocations: 326.8 kB / 463 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-05/0.1083, allocations: 39.98 kB / 463 MB, free: 3.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.1084, allocations: 61.69 kB / 463.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.1087, allocations: 160.9 kB / 463.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1087, allocations: 0 / 463.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003334/0.109, allocations: 203.5 kB / 463.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.1091, allocations: 41.69 kB / 463.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1091, allocations: 0 / 463.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1091, allocations: 4 kB / 463.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.732e-05/0.1092, allocations: 11.98 kB / 463.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.1092, allocations: 4 kB / 463.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.142e-05/0.1093, allocations: 15.89 kB / 463.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.1093, 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.000141/0.1094, allocations: 168.1 kB / 463.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.1095, allocations: 11.95 kB / 463.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.536e-05/0.1095, allocations: 16.7 kB / 463.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1095, allocations: 0 / 463.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1095, allocations: 0 / 463.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1096, allocations: 11.94 kB / 463.7 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.1098, allocations: 217.5 kB / 463.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1098, allocations: 4 kB / 463.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.52e-05/0.1098, allocations: 11.98 kB / 463.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1099, allocations: 7.938 kB / 463.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.1099, allocations: 4 kB / 463.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1099, allocations: 0 / 463.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1099, allocations: 0 / 463.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000414/0.1103, allocations: 263.5 kB / 464.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.1104, allocations: 93.05 kB / 464.3 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.1104, allocations: 8 kB / 464.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.869e-05/0.1105, allocations: 7.984 kB / 464.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.1106, allocations: 11.94 kB / 464.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.1106, allocations: 7.984 kB / 464.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001104/0.1107, allocations: 123.2 kB / 464.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1107, allocations: 0 / 464.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.1111, allocations: 87.75 kB / 464.5 MB, free: 1.973 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.001884/0.113, allocations: 1.116 MB / 465.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.1134, allocations: 203.3 kB / 465.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1134, allocations: 0 / 465.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.1136, allocations: 143.3 kB / 466 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.1139, allocations: 31.06 kB / 466 MB, free: 0.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.1164, allocations: 1.931 MB / 467.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.1168, allocations: 0.7117 MB / 468.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.193e-05/0.1169, allocations: 16.42 kB / 468.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.399e-05/0.1169, allocations: 31.42 kB / 468.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of SimCode: time 9.21e-07/0.117, allocations: 4 kB / 468.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/0.1436, allocations: 4.509 MB / 473.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.348/8.491, allocations: 11.69 kB / 473.2 MB, free: 9.195 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)