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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005767/0.005767, allocations: 100 kB / 15.73 MB, free: 6.469 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.001376/0.001376, allocations: 196.7 kB / 16.67 MB, free: 6.379 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.137/0.137, allocations: 2.939 MB / 293.5 MB, free: 3.25 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 55.91 kB / 405.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2633, allocations: 50.33 MB / 456.1 MB, free: 28 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002431/0.2658, allocations: 1.678 MB / 457.8 MB, free: 26.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.2674, allocations: 1.606 MB / 459.4 MB, free: 25.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.589e-05/0.2675, allocations: 0 / 459.4 MB, free: 25.72 MB / 366.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.0002831/0.2677, allocations: 35.69 kB / 459.4 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002895/0.268, allocations: 122.7 kB / 459.5 MB, free: 25.63 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.2683, allocations: 80.56 kB / 459.6 MB, free: 25.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000107/0.2684, allocations: 92.39 kB / 459.7 MB, free: 25.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.22e-05/0.2685, allocations: 19.28 kB / 459.7 MB, free: 25.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.127e-05/0.2685, allocations: 38.48 kB / 459.8 MB, free: 25.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.2687, allocations: 39.06 kB / 459.8 MB, free: 25.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.2687, allocations: 6.344 kB / 459.8 MB, free: 25.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002316/0.2689, allocations: 198.5 kB / 460 MB, free: 25.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.202e-05/0.269, allocations: 24.34 kB / 460 MB, free: 25.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.059e-05/0.2691, allocations: 51.36 kB / 460.1 MB, free: 25.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.2693, allocations: 235.6 kB / 460.3 MB, free: 25.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2693, allocations: 3.125 kB / 460.3 MB, free: 25.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2694, allocations: 0 / 460.3 MB, free: 25.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.2694, allocations: 0 / 460.3 MB, free: 25.32 MB / 366.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.0005002/0.2699, allocations: 474.5 kB / 460.8 MB, free: 24.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.2699, allocations: 13.08 kB / 460.8 MB, free: 24.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.581e-05/0.2699, allocations: 37.36 kB / 460.8 MB, free: 24.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.001e-05/0.27, allocations: 19.06 kB / 460.8 MB, free: 24.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.2702, allocations: 215.8 kB / 461 MB, free: 24.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.2702, allocations: 384 / 461 MB, free: 24.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.2703, allocations: 9.812 kB / 461.1 MB, free: 24.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.2704, allocations: 102.4 kB / 461.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.2704, allocations: 0 / 461.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.2705, allocations: 0 / 461.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2705, allocations: 6.922 kB / 461.2 MB, free: 24.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.2706, allocations: 56.52 kB / 461.2 MB, free: 24.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002946/0.2709, allocations: 318.4 kB / 461.5 MB, free: 24.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.2711, allocations: 102.2 kB / 461.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.132e-05/0.2712, allocations: 62.83 kB / 461.7 MB, free: 24.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.2712, allocations: 0 / 461.7 MB, free: 24.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.2714, allocations: 137.1 kB / 461.8 MB, free: 23.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.2714, allocations: 0 / 461.8 MB, free: 23.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003721/0.2718, allocations: 230.6 kB / 462 MB, free: 23.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.2718, allocations: 113.9 kB / 462.2 MB, free: 23.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.2719, allocations: 153.6 kB / 462.3 MB, free: 23.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.094e-05/0.2719, allocations: 28.89 kB / 462.3 MB, free: 23.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.896e-05/0.272, allocations: 98.84 kB / 462.4 MB, free: 23.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.272, allocations: 26.84 kB / 462.5 MB, free: 23.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.272, allocations: 26.88 kB / 462.5 MB, free: 23.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.219e-05/0.2721, allocations: 329 kB / 462.8 MB, free: 23.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.149e-05/0.2722, allocations: 37.8 kB / 462.8 MB, free: 23.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.745e-05/0.2722, allocations: 51.38 kB / 462.9 MB, free: 23.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.2724, allocations: 152.2 kB / 463 MB, free: 22.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2724, allocations: 0 / 463 MB, free: 22.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002356/0.2726, allocations: 190.5 kB / 463.2 MB, free: 22.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.2727, allocations: 39.08 kB / 463.3 MB, free: 22.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.2727, allocations: 4 kB / 463.3 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.2727, allocations: 3.219 kB / 463.3 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.691e-05/0.2728, allocations: 16.19 kB / 463.3 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.2728, allocations: 0 / 463.3 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.735e-05/0.2728, allocations: 10.28 kB / 463.3 MB, free: 22.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.2729, allocations: 3.156 kB / 463.3 MB, free: 22.82 MB / 366.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.519e-05/0.2729, allocations: 157.3 kB / 463.5 MB, free: 22.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.273, allocations: 20.58 kB / 463.5 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.43e-05/0.273, allocations: 15.84 kB / 463.5 MB, free: 22.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.273, allocations: 0 / 463.5 MB, free: 22.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.273, allocations: 0 / 463.5 MB, free: 22.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.273, allocations: 7.094 kB / 463.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.947e-05/0.2731, allocations: 204.5 kB / 463.7 MB, free: 22.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2731, allocations: 0 / 463.7 MB, free: 22.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.2732, allocations: 17.22 kB / 463.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2732, allocations: 0 / 463.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.2732, allocations: 6.703 kB / 463.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2732, allocations: 3.25 kB / 463.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2732, allocations: 0 / 463.7 MB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.2735, allocations: 248 kB / 464 MB, free: 22.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.494e-05/0.2736, allocations: 102.5 kB / 464.1 MB, free: 22.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.2736, allocations: 3.188 kB / 464.1 MB, free: 22.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.434e-05/0.2737, allocations: 14.3 kB / 464.1 MB, free: 22.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.2737, allocations: 10.52 kB / 464.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.2737, allocations: 7.031 kB / 464.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.923e-05/0.2738, allocations: 125.4 kB / 464.2 MB, free: 22.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2738, allocations: 3.938 kB / 464.2 MB, free: 22.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.2741, allocations: 75.22 kB / 464.3 MB, free: 22.04 MB / 366.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.001167/0.2753, allocations: 1.095 MB / 465.4 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002634/0.2756, allocations: 188.8 kB / 465.6 MB, free: 21.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2756, allocations: 4 kB / 465.6 MB, free: 21.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.2757, allocations: 127.8 kB / 465.7 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.2759, allocations: 32.64 kB / 465.7 MB, free: 21.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/0.2776, allocations: 1.867 MB / 467.6 MB, free: 19.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.817e-05/0.2777, allocations: 0.7047 MB / 468.3 MB, free: 18.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.834e-05/0.2777, allocations: 20.08 kB / 468.3 MB, free: 18.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.508e-05/0.2778, allocations: 39.84 kB / 468.4 MB, free: 18.89 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2778, allocations: 0 / 468.4 MB, free: 18.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.2977, allocations: 4.41 MB / 472.8 MB, free: 17.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.562/7.86, allocations: 0 / 472.8 MB, free: 17.98 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1)