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.001191/0.001191, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001205/0.001205, allocations: 191.9 kB / 16.14 MB, free: 6.711 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.208/1.208, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1086/0.1086, allocations: 2.936 MB / 292.9 MB, free: 3.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 354.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07457/0.07579, allocations: 50.34 MB / 404.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002527/0.07835, allocations: 1.728 MB / 406.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.08027, allocations: 1.588 MB / 407.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.573e-05/0.08034, allocations: 0 / 407.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.0806, allocations: 35.84 kB / 407.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.08088, allocations: 99.66 kB / 407.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.08108, allocations: 63.88 kB / 408 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.98e-05/0.08117, allocations: 75.77 kB / 408 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.812e-05/0.08125, allocations: 20.2 kB / 408 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.418e-05/0.08132, allocations: 43.73 kB / 408.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.08147, allocations: 35.83 kB / 408.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.0815, allocations: 4 kB / 408.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002594/0.08177, allocations: 191.8 kB / 408.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.08183, allocations: 19.86 kB / 408.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.814e-05/0.08189, allocations: 43.72 kB / 408.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002963/0.0822, allocations: 235.8 kB / 408.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.08221, allocations: 4 kB / 408.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.08222, allocations: 0 / 408.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.08222, allocations: 0 / 408.6 MB, free: 14.22 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.0005421/0.08277, allocations: 480.7 kB / 409.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.08281, allocations: 8.031 kB / 409.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.495e-05/0.08285, allocations: 42.73 kB / 409.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.067e-05/0.08289, allocations: 8.844 kB / 409.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001866/0.08308, allocations: 216 kB / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.0831, allocations: 4.375 kB / 409.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.08312, allocations: 11.94 kB / 409.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001834/0.08331, allocations: 91.38 kB / 409.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.08333, allocations: 0 / 409.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.08334, allocations: 3.984 kB / 409.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.08335, allocations: 4 kB / 409.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001265/0.08348, allocations: 55.89 kB / 409.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.08384, allocations: 317.7 kB / 409.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.08406, allocations: 101.2 kB / 409.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.563e-05/0.08416, allocations: 57.75 kB / 410 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.948e-06/0.08418, allocations: 8 kB / 410 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/0.0844, allocations: 138.7 kB / 410.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.08441, allocations: 0 / 410.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004169/0.08483, allocations: 231.2 kB / 410.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.691e-05/0.08489, allocations: 110.8 kB / 410.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.08503, allocations: 160.4 kB / 410.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.16e-05/0.08506, allocations: 29.7 kB / 410.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.279e-05/0.0851, allocations: 96.12 kB / 410.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.915e-05/0.08514, allocations: 27.56 kB / 410.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.251e-05/0.08519, allocations: 25.7 kB / 410.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.08529, allocations: 330.8 kB / 411.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.526e-05/0.08537, allocations: 31.98 kB / 411.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.956e-05/0.08546, allocations: 57.69 kB / 411.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.08565, allocations: 149 kB / 411.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.08566, allocations: 0 / 411.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002784/0.08594, allocations: 191.1 kB / 411.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.08599, allocations: 37.69 kB / 411.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.086, allocations: 0 / 411.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.518e-06/0.08601, allocations: 4 kB / 411.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.619e-05/0.08607, allocations: 15.98 kB / 411.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.08608, allocations: 0 / 411.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.973e-05/0.08616, allocations: 11.94 kB / 411.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.08618, allocations: 4 kB / 411.6 MB, free: 10.89 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 0.000107/0.08629, allocations: 163.4 kB / 411.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.08632, allocations: 11.91 kB / 411.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.512e-05/0.08635, allocations: 16.7 kB / 411.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.08636, allocations: 0 / 411.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.08637, allocations: 4 kB / 411.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.08638, allocations: 3.938 kB / 411.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.08653, allocations: 213.5 kB / 412 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.08654, allocations: 0 / 412 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.742e-05/0.08659, allocations: 11.94 kB / 412 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.0866, allocations: 0 / 412 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.08661, allocations: 8.328 kB / 412 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.08662, allocations: 0 / 412 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08663, allocations: 0 / 412 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003262/0.08696, allocations: 255.5 kB / 412.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.065e-05/0.08702, allocations: 93 kB / 412.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/0.08705, allocations: 7.984 kB / 412.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.423e-05/0.08712, allocations: 4 kB / 412.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.6e-05/0.08716, allocations: 19.86 kB / 412.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.08719, allocations: 8.062 kB / 412.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.33e-05/0.08727, allocations: 123.2 kB / 412.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08728, allocations: 4 kB / 412.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002805/0.08757, allocations: 75.92 kB / 412.6 MB, free: 9.781 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.001234/0.08881, allocations: 1.1 MB / 413.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000268/0.08909, allocations: 191.3 kB / 413.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.0891, allocations: 4 kB / 413.9 MB, free: 8.566 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.08924, allocations: 135.3 kB / 414 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.08946, allocations: 19.94 kB / 414 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.09134, allocations: 1.883 MB / 415.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/0.09161, allocations: 0.7083 MB / 416.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.36e-05/0.09167, allocations: 20.39 kB / 416.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.09174, allocations: 35.42 kB / 416.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09174, allocations: 0 / 416.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0141/0.1059, allocations: 4.053 MB / 420.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001617/0.106, allocations: 239.3 kB / 421 MB, free: 1.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/1.768, allocations: 0 / 421 MB, free: 1.379 MB / 350.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)