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.0007926/0.0007926, 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.0009148/0.0009148, allocations: 165.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.889/0.889, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.01049/0.01049, allocations: 2.267 MB / 261.5 MB, free: 10.99 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.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.771e-06/5.771e-06, allocations: 0 / 385.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/3.274e-05, allocations: 2.281 kB / 385.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002648/0.002681, allocations: 1.671 MB / 387 MB, free: 10.72 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.004548, allocations: 1.691 MB / 388.7 MB, free: 9.023 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.127e-05/0.004619, allocations: 4 kB / 388.7 MB, free: 9.02 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.0003626/0.004982, allocations: 47.7 kB / 388.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004247/0.005407, allocations: 123.3 kB / 388.8 MB, free: 8.852 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001937/0.0056, allocations: 91.7 kB / 388.9 MB, free: 8.762 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.005819, allocations: 83.77 kB / 389 MB, free: 8.68 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.005935, allocations: 16.2 kB / 389 MB, free: 8.66 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.00604, allocations: 55.78 kB / 389.1 MB, free: 8.605 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.006185, allocations: 31.89 kB / 389.1 MB, free: 8.574 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.765e-05/0.006202, allocations: 7.938 kB / 389.1 MB, free: 8.566 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003158/0.006518, allocations: 187.7 kB / 389.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.432e-05/0.006582, allocations: 23.91 kB / 389.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.862e-05/0.006631, allocations: 27.92 kB / 389.3 MB, free: 8.332 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003264/0.006957, allocations: 267.2 kB / 389.6 MB, free: 8.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.006961, allocations: 0 / 389.6 MB, free: 8.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.006963, allocations: 0 / 389.6 MB, free: 8.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.006967, allocations: 0 / 389.6 MB, free: 8.07 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.000568/0.007535, allocations: 411 kB / 390 MB, free: 7.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.007581, allocations: 8.031 kB / 390 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.185e-05/0.007613, allocations: 38.75 kB / 390.1 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.234e-05/0.007665, allocations: 20.84 kB / 390.1 MB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003238/0.007989, allocations: 160.3 kB / 390.2 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.008007, allocations: 8.312 kB / 390.2 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.008026, allocations: 4.375 kB / 390.2 MB, free: 7.367 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.008286, allocations: 133.3 kB / 390.4 MB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.008297, allocations: 0 / 390.4 MB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.008309, allocations: 0 / 390.4 MB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.008315, allocations: 0 / 390.4 MB, free: 7.219 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.008433, allocations: 89.66 kB / 390.5 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005034/0.008936, allocations: 276.8 kB / 390.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.009252, allocations: 122.9 kB / 390.9 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.518e-05/0.009337, allocations: 79.44 kB / 390.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.009355, allocations: 0 / 390.9 MB, free: 6.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.009547, allocations: 172.4 kB / 391.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.009549, allocations: 0 / 391.1 MB, free: 6.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003743/0.009923, allocations: 294.8 kB / 391.4 MB, free: 6.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.267e-05/0.009986, allocations: 110.8 kB / 391.5 MB, free: 5.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.0101, allocations: 165.7 kB / 391.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.01011, allocations: 29.7 kB / 391.7 MB, free: 5.723 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.417e-05/0.01015, allocations: 96.08 kB / 391.8 MB, free: 5.625 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.699e-05/0.01019, allocations: 27.8 kB / 391.8 MB, free: 5.598 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.01023, allocations: 21.72 kB / 391.8 MB, free: 5.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.863e-05/0.01031, allocations: 326.8 kB / 392.1 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.964e-05/0.01038, allocations: 73.61 kB / 392.2 MB, free: 5.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-05/0.01044, allocations: 87.39 kB / 392.3 MB, free: 5.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.01057, allocations: 153 kB / 392.5 MB, free: 4.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.01057, allocations: 4 kB / 392.5 MB, free: 4.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002106/0.01078, allocations: 241 kB / 392.7 MB, free: 4.641 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.01081, allocations: 41.69 kB / 392.7 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.01082, allocations: 0 / 392.7 MB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.01083, allocations: 4 kB / 392.7 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.647e-05/0.01088, allocations: 11.94 kB / 392.7 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.01088, allocations: 0 / 392.7 MB, free: 4.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.705e-05/0.01094, allocations: 15.92 kB / 392.8 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.01095, allocations: 4 kB / 392.8 MB, free: 4.559 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 (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 0.0001033/0.01105, allocations: 163.5 kB / 392.9 MB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.01108, allocations: 15.91 kB / 392.9 MB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.0111, allocations: 16.77 kB / 393 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.01111, allocations: 0 / 393 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.01111, allocations: 4 kB / 393 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.01111, allocations: 0 / 393 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.01123, allocations: 164.6 kB / 393.1 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.01124, allocations: 0 / 393.1 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.304e-05/0.01127, allocations: 8 kB / 393.1 MB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.01127, allocations: 4 kB / 393.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.01128, allocations: 16 kB / 393.2 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.01129, allocations: 0 / 393.2 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.01129, allocations: 0 / 393.2 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.01155, allocations: 289 kB / 393.4 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.407e-05/0.01157, allocations: 19.88 kB / 393.5 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.0116, allocations: 8 kB / 393.5 MB, free: 3.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.984e-05/0.01164, allocations: 7.984 kB / 393.5 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.01167, allocations: 4 kB / 393.5 MB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.01168, allocations: 4 kB / 393.5 MB, free: 3.754 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.635e-05/0.01176, allocations: 124.8 kB / 393.6 MB, free: 3.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.01176, allocations: 4 kB / 393.6 MB, free: 3.629 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000257/0.01201, allocations: 75.8 kB / 393.7 MB, free: 3.555 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,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.00117/0.01318, allocations: 1.156 MB / 394.8 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000253/0.01344, allocations: 234.7 kB / 395.1 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.01344, allocations: 0 / 395.1 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.849e-05/0.01353, allocations: 141.1 kB / 395.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.01372, allocations: 23.88 kB / 395.2 MB, free: 2.043 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.01545, allocations: 2.077 MB / 397.3 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.122e-05/0.01552, allocations: 93.05 kB / 397.4 MB, free: 15.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.833e-05/0.01556, allocations: 12.48 kB / 397.4 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.835e-05/0.01562, allocations: 40.48 kB / 397.4 MB, free: 15.67 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01562, allocations: 0 / 397.4 MB, free: 15.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.03837, allocations: 5.126 MB / 402.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.764/6.803, allocations: 12 kB / 402.6 MB, free: 10.54 MB / 378.7 MB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 8.514965126290917] Failed to read output from testmodel.py, exit status != 0: 6.89418513327837 6.902895068 6.894191726 Calling exit ...