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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008322/0.0008322, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000849/0.000849, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8942/0.8942, allocations: 177.1 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01121/0.01121, allocations: 2.255 MB / 261.4 MB, free: 10.98 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 385.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.176e-05/2.355e-05, allocations: 10.22 kB / 385.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002972/0.002996, allocations: 1.67 MB / 387 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.00525, allocations: 1.71 MB / 388.7 MB, free: 8.984 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.829e-05/0.005328, allocations: 0 / 388.7 MB, free: 8.984 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:238:3-267:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003963/0.005724, allocations: 43.72 kB / 388.7 MB, free: 8.941 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003943/0.006118, allocations: 119.4 kB / 388.8 MB, free: 8.824 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.006357, allocations: 91.72 kB / 388.9 MB, free: 8.734 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.006511, allocations: 99.7 kB / 389 MB, free: 8.637 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.655e-05/0.006608, allocations: 24.19 kB / 389.1 MB, free: 8.609 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.006712, allocations: 51.91 kB / 389.1 MB, free: 8.559 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.006862, allocations: 35.89 kB / 389.1 MB, free: 8.523 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.006883, allocations: 8 kB / 389.2 MB, free: 8.516 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002093/0.007092, allocations: 191.6 kB / 389.3 MB, free: 8.328 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.979e-05/0.007152, allocations: 23.91 kB / 389.4 MB, free: 8.305 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 5.112e-05/0.007203, allocations: 31.92 kB / 389.4 MB, free: 8.273 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.007506, allocations: 287.2 kB / 389.7 MB, free: 7.992 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.00751, allocations: 0 / 389.7 MB, free: 7.992 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.007511, allocations: 4 kB / 389.7 MB, free: 7.988 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.007515, allocations: 0 / 389.7 MB, free: 7.988 MB / 362.7 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.0004901/0.008005, allocations: 415.1 kB / 390.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.00804, allocations: 11.97 kB / 390.1 MB, free: 7.535 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.983e-05/0.00807, allocations: 38.75 kB / 390.1 MB, free: 7.488 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.8e-05/0.008108, allocations: 16.84 kB / 390.2 MB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.008316, allocations: 164.5 kB / 390.3 MB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.008325, allocations: 384 / 390.3 MB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.008337, allocations: 4.375 kB / 390.3 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.008523, allocations: 141.3 kB / 390.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.00853, allocations: 0 / 390.5 MB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.00854, allocations: 4 kB / 390.5 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.008545, allocations: 4 kB / 390.5 MB, free: 7.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.008645, allocations: 89.66 kB / 390.5 MB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003077/0.008953, allocations: 288.8 kB / 390.8 MB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.00914, allocations: 123 kB / 391 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.195e-05/0.009212, allocations: 87.44 kB / 391 MB, free: 6.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.009227, allocations: 4 kB / 391 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001724/0.009399, allocations: 184.4 kB / 391.2 MB, free: 6.242 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 9.32e-07/0.0094, allocations: 0 / 391.2 MB, free: 6.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.000365/0.009765, allocations: 322.8 kB / 391.5 MB, free: 5.902 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.009813, allocations: 110.8 kB / 391.6 MB, free: 5.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.009925, allocations: 161.7 kB / 391.8 MB, free: 5.602 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.009938, allocations: 29.7 kB / 391.8 MB, free: 5.566 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.273e-05/0.009981, allocations: 100.1 kB / 391.9 MB, free: 5.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.01001, allocations: 27.75 kB / 392 MB, free: 5.438 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.01005, allocations: 33.64 kB / 392 MB, free: 5.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.422e-05/0.01014, allocations: 330.8 kB / 392.3 MB, free: 5.066 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.384e-05/0.01021, allocations: 73.69 kB / 392.4 MB, free: 4.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.736e-05/0.01028, allocations: 91.39 kB / 392.5 MB, free: 4.887 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001363/0.01041, allocations: 165.2 kB / 392.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.01041, allocations: 0 / 392.6 MB, free: 4.707 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002148/0.01063, allocations: 252.8 kB / 392.9 MB, free: 4.441 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.01066, allocations: 41.69 kB / 392.9 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01067, allocations: 0 / 392.9 MB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.01068, allocations: 4 kB / 392.9 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.246e-05/0.01072, allocations: 15.98 kB / 392.9 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.01073, allocations: 0 / 392.9 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.915e-05/0.01078, allocations: 11.94 kB / 393 MB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.01079, allocations: 4.312 kB / 393 MB, free: 4.359 MB / 362.7 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 9.99e-05/0.01089, allocations: 171.4 kB / 393.1 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.846e-05/0.01091, allocations: 11.91 kB / 393.1 MB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.01093, allocations: 16.77 kB / 393.2 MB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.01093, allocations: 4 kB / 393.2 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.01094, allocations: 0 / 393.2 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.01094, allocations: 0 / 393.2 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.01106, allocations: 176.6 kB / 393.3 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.01106, allocations: 0 / 393.3 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.961e-05/0.01109, allocations: 11.98 kB / 393.3 MB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.01109, allocations: 0 / 393.3 MB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.0111, allocations: 12 kB / 393.4 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.0111, allocations: 0 / 393.4 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.0111, allocations: 4 kB / 393.4 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002591/0.01136, allocations: 313 kB / 393.7 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.013e-05/0.01138, allocations: 19.88 kB / 393.7 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.0114, allocations: 8 kB / 393.7 MB, free: 3.531 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.525e-05/0.01144, allocations: 8 kB / 393.7 MB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.15e-05/0.01147, allocations: 11.98 kB / 393.7 MB, free: 3.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.01149, allocations: 4 kB / 393.7 MB, free: 3.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.77e-05/0.01155, allocations: 124.6 kB / 393.8 MB, free: 3.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01155, allocations: 0 / 393.8 MB, free: 3.387 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002271/0.01178, allocations: 75.8 kB / 393.9 MB, free: 3.312 MB / 362.7 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.001012/0.01279, allocations: 1.176 MB / 395.1 MB, free: 2.207 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002328/0.01303, allocations: 238.7 kB / 395.3 MB, free: 1.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01303, allocations: 0 / 395.3 MB, free: 1.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.331e-05/0.01312, allocations: 153 kB / 395.5 MB, free: 1.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001851/0.01331, allocations: 15.98 kB / 395.5 MB, free: 1.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.01498, allocations: 2.148 MB / 397.6 MB, free: 15.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.543e-05/0.01503, allocations: 89.06 kB / 397.7 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.056e-05/0.01509, allocations: 20.47 kB / 397.7 MB, free: 15.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.01514, allocations: 36.48 kB / 397.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01514, allocations: 0 / 397.8 MB, free: 15.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.03469, allocations: 5.295 MB / 403.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.787/6.822, allocations: 2.969 kB / 403.1 MB, free: 10.05 MB / 378.7 MB " [Timeout remaining time 653] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestInnerOuter.fmu > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.505916126072407] Failed to read output from testmodel.py, exit status != 0: 6.910989088006318 6.920770473 6.911040291 Calling exit ...