Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTest.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.001794/0.001794, allocations: 117.4 kB / 17.17 MB, free: 5.977 MB / 14.72 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.002484/0.002484, allocations: 214.3 kB / 20.13 MB, free: 3.035 MB / 14.72 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 1.603/1.603, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.01626/0.01626, allocations: 3.267 MB / 312.8 MB, free: 2.141 MB / 238.1 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.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 65.73 kB / 435.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08332/0.08532, allocations: 54.34 MB / 489.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002425/0.08774, allocations: 1.688 MB / 491.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001851/0.08959, allocations: 1.649 MB / 492.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.162e-05/0.08967, allocations: 2 kB / 492.8 MB, free: 10.91 MB / 350.1 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.0002745/0.08994, allocations: 43.03 kB / 492.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.09026, allocations: 124.8 kB / 492.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.09047, allocations: 91.3 kB / 493 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00012/0.09059, allocations: 86.14 kB / 493.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.368e-05/0.09066, allocations: 8.359 kB / 493.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.844e-05/0.09073, allocations: 40.34 kB / 493.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.09089, allocations: 41.53 kB / 493.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.0909, allocations: 5.5 kB / 493.2 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00024/0.09114, allocations: 198.6 kB / 493.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.363e-05/0.0912, allocations: 36.03 kB / 493.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.736e-05/0.09124, allocations: 39.73 kB / 493.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.09154, allocations: 243 kB / 493.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.09154, allocations: 0 / 493.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.09154, allocations: 4 kB / 493.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.09155, allocations: 1.25 kB / 493.7 MB, free: 10.32 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.0005176/0.09207, allocations: 478.9 kB / 494.2 MB, free: 9.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.0921, allocations: 11.03 kB / 494.2 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.213e-05/0.09211, allocations: 4.125 kB / 494.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.037e-05/0.09213, allocations: 41.19 kB / 494.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.193e-05/0.09217, allocations: 10.61 kB / 494.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.09241, allocations: 211.7 kB / 494.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.09241, allocations: 6.531 kB / 494.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.888e-05/0.09243, allocations: 2.75 kB / 494.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.09261, allocations: 93.69 kB / 494.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.09262, allocations: 5.016 kB / 494.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.09264, allocations: 1.25 kB / 494.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.09264, allocations: 1.031 kB / 494.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.09277, allocations: 55.44 kB / 494.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003051/0.09307, allocations: 323.6 kB / 494.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002109/0.09328, allocations: 92.73 kB / 495 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.962e-05/0.09337, allocations: 53.64 kB / 495.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.09339, allocations: 0 / 495.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.09356, allocations: 134.9 kB / 495.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.09357, allocations: 0 / 495.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004342/0.094, allocations: 231.4 kB / 495.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.09403, allocations: 114.1 kB / 495.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.09415, allocations: 169.5 kB / 495.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.09416, allocations: 25.7 kB / 495.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.557e-05/0.09419, allocations: 92.14 kB / 495.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.09421, allocations: 43.73 kB / 495.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.09425, allocations: 21.72 kB / 495.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.802e-05/0.09429, allocations: 322.8 kB / 496.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.692e-05/0.09437, allocations: 43.97 kB / 496.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.241e-05/0.09444, allocations: 45.7 kB / 496.3 MB, free: 7.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.09459, allocations: 157 kB / 496.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.09459, allocations: 0 / 496.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002496/0.09484, allocations: 183.2 kB / 496.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.09487, allocations: 43.72 kB / 496.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.09487, allocations: 4 kB / 496.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.09488, allocations: 4 kB / 496.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.127e-05/0.09495, allocations: 12 kB / 496.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.09495, allocations: 3.984 kB / 496.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.54e-05/0.09503, allocations: 15.89 kB / 496.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.09504, allocations: 4 kB / 496.7 MB, free: 7.406 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 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,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 7.697e-05/0.09511, allocations: 155.5 kB / 496.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.09515, allocations: 11.95 kB / 496.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.461e-05/0.09517, allocations: 16.7 kB / 496.9 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.09517, allocations: 4 kB / 496.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.09518, allocations: 0 / 496.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.09518, allocations: 7.875 kB / 496.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.09528, allocations: 209.5 kB / 497.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.09529, allocations: 0 / 497.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.301e-05/0.09534, allocations: 11.98 kB / 497.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.09534, allocations: 0 / 497.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.09535, allocations: 8 kB / 497.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.09535, allocations: 0 / 497.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.09535, allocations: 0 / 497.1 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002862/0.09564, allocations: 255.8 kB / 497.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.933e-05/0.09567, allocations: 89.06 kB / 497.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.0957, allocations: 7.984 kB / 497.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.888e-05/0.09577, allocations: 4 kB / 497.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.125e-05/0.0958, allocations: 12.2 kB / 497.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.09582, allocations: 11.98 kB / 497.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.771e-05/0.09589, allocations: 123.2 kB / 497.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09589, allocations: 0 / 497.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.0962, allocations: 83.69 kB / 497.7 MB, free: 6.301 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,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,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.001461/0.09766, allocations: 1.087 MB / 498.8 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002544/0.09792, allocations: 163.3 kB / 498.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.09792, allocations: 0 / 498.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.09802, allocations: 111.3 kB / 499 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.09824, allocations: 26.73 kB / 499.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.09986, allocations: 1.876 MB / 0.4892 GB, free: 2.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.09997, allocations: 0.704 MB / 0.4899 GB, free: 2.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.831e-05/0.1, allocations: 12.42 kB / 0.4899 GB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.87e-05/0.1001, allocations: 35.42 kB / 0.4899 GB, free: 2.211 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1001, allocations: 4 kB / 0.4899 GB, free: 2.207 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02214/0.1222, allocations: 4.363 MB / 0.4942 GB, free: 13.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.229/8.351, allocations: 4 kB / 0.4942 GB, free: 13.82 MB / 366.1 MB " [Timeout remaining time 652] (rm -f ExternData_ExternData.Examples.XMLTest.pipe ; mkfifo ExternData_ExternData.Examples.XMLTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTest.pipe >> ../files/ExternData_ExternData.Examples.XMLTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.16534798196517] Failed to read output from testmodel.py, exit status != 0: 8.485584478999954 8.500923347 8.406475094 Calling exit ...