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.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/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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: translateModel(ExternData.Examples.XMLTestInnerOuter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.XMLTestInnerOuter") translateModel(ExternData.Examples.XMLTestInnerOuter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.XMLTestInnerOuter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006256/0.006256, allocations: 106.8 kB / 15.74 MB, free: 6.051 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.001416/0.001417, allocations: 197 kB / 16.68 MB, free: 5.98 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.1881/0.1881, allocations: 2.939 MB / 293.5 MB, free: 3.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.88 kB / 406.2 MB, free: 128 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.3507, allocations: 50.33 MB / 456.6 MB, free: 28.26 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002608/0.3533, allocations: 1.683 MB / 458.3 MB, free: 27.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001864/0.3552, allocations: 1.601 MB / 459.9 MB, free: 25.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.037e-05/0.3553, allocations: 3.938 kB / 459.9 MB, free: 25.98 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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.0003866/0.3557, allocations: 46.38 kB / 459.9 MB, free: 25.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.3561, allocations: 117.9 kB / 460 MB, free: 25.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.3563, allocations: 110.6 kB / 460.1 MB, free: 25.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.3565, allocations: 96.73 kB / 460.2 MB, free: 25.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.825e-05/0.3566, allocations: 14.66 kB / 460.2 MB, free: 25.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.073e-05/0.3567, allocations: 46.33 kB / 460.3 MB, free: 25.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.3569, allocations: 37.86 kB / 460.3 MB, free: 25.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.3569, allocations: 6.406 kB / 460.3 MB, free: 25.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.3571, allocations: 205.8 kB / 460.5 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.455e-05/0.3572, allocations: 24.06 kB / 460.6 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.769e-05/0.3573, allocations: 47.11 kB / 460.6 MB, free: 25.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003031/0.3576, allocations: 249.9 kB / 460.9 MB, free: 25.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3576, allocations: 0 / 460.9 MB, free: 25.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3576, allocations: 0 / 460.9 MB, free: 25.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.3576, allocations: 0 / 460.9 MB, free: 25.55 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.0005311/0.3582, allocations: 460.7 kB / 461.3 MB, free: 25.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.3582, allocations: 13.42 kB / 461.3 MB, free: 25.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.588e-05/0.3582, allocations: 11.44 kB / 461.3 MB, free: 25.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.3585, allocations: 203.5 kB / 461.5 MB, free: 24.88 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.3585, allocations: 7.531 kB / 461.5 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.3585, allocations: 7.406 kB / 461.5 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.3587, allocations: 100.6 kB / 461.6 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.3587, allocations: 0 / 461.6 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.3588, allocations: 0 / 461.6 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3588, allocations: 3.156 kB / 461.6 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.3589, allocations: 62 kB / 461.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003634/0.3593, allocations: 329.5 kB / 462 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.3595, allocations: 104.9 kB / 462.1 MB, free: 24.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.989e-05/0.3596, allocations: 68.64 kB / 462.2 MB, free: 24.35 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.3597, allocations: 4 kB / 462.2 MB, free: 24.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.3599, allocations: 142.8 kB / 462.3 MB, free: 24.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.3599, allocations: 0 / 462.3 MB, free: 24.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004516/0.3603, allocations: 244.3 kB / 462.6 MB, free: 24.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3604, allocations: 113.2 kB / 462.7 MB, free: 23.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.819e-05/0.3605, allocations: 139.6 kB / 462.8 MB, free: 23.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.3605, allocations: 32.92 kB / 462.9 MB, free: 23.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.306e-05/0.3605, allocations: 94.84 kB / 462.9 MB, free: 23.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.3606, allocations: 23 kB / 463 MB, free: 23.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.3606, allocations: 26.81 kB / 463 MB, free: 23.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.004e-05/0.3607, allocations: 322.2 kB / 463.3 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.54e-05/0.3608, allocations: 40.84 kB / 463.3 MB, free: 23.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.679e-05/0.3608, allocations: 61.94 kB / 463.4 MB, free: 23.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.361, allocations: 160 kB / 463.6 MB, free: 23.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.361, allocations: 0 / 463.6 MB, free: 23.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002564/0.3613, allocations: 201.3 kB / 463.8 MB, free: 23.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.3613, allocations: 39.19 kB / 463.8 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3613, allocations: 0 / 463.8 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.3614, allocations: 3.25 kB / 463.8 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.96e-05/0.3614, allocations: 20.66 kB / 463.8 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3614, allocations: 0 / 463.8 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.502e-05/0.3615, allocations: 17.78 kB / 463.8 MB, free: 23.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.311e-05/0.3615, allocations: 7.094 kB / 463.8 MB, free: 23.05 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 (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.505e-05/0.3616, allocations: 161.9 kB / 464 MB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.3617, allocations: 17.69 kB / 464 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.3617, allocations: 15.02 kB / 464 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3617, allocations: 0 / 464 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.3617, allocations: 2.969 kB / 464 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.3617, allocations: 4 kB / 464 MB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.3618, allocations: 215 kB / 464.3 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3618, allocations: 0 / 464.3 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.593e-05/0.3619, allocations: 9.453 kB / 464.3 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3619, allocations: 2.875 kB / 464.3 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.3619, allocations: 3.156 kB / 464.3 MB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3619, allocations: 3.938 kB / 464.3 MB, free: 22.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3619, allocations: 0 / 464.3 MB, free: 22.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003243/0.3623, allocations: 264.2 kB / 464.5 MB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.081e-05/0.3623, allocations: 83.92 kB / 464.6 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.3623, allocations: 10.34 kB / 464.6 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.456e-05/0.3624, allocations: 3.094 kB / 464.6 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.3625, allocations: 18.34 kB / 464.6 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.3625, allocations: 10.5 kB / 464.7 MB, free: 22.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.905e-05/0.3626, allocations: 104.6 kB / 464.8 MB, free: 22.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3626, allocations: 0 / 464.8 MB, free: 22.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.3629, allocations: 83.72 kB / 464.8 MB, free: 22.27 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,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.0008413/0.3637, allocations: 435.7 kB / 465.3 MB, free: 22.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003073/0.364, allocations: 199.8 kB / 465.5 MB, free: 21.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.364, allocations: 7.938 kB / 465.5 MB, free: 21.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.3642, allocations: 145.5 kB / 465.6 MB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.3644, allocations: 24.67 kB / 465.6 MB, free: 21.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004768/0.3649, allocations: 241 kB / 465.9 MB, free: 21.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.3651, allocations: 0.6976 MB / 466.6 MB, free: 20.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.832e-05/0.3651, allocations: 10.62 kB / 466.6 MB, free: 20.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.198e-05/0.3651, allocations: 13.94 kB / 466.6 MB, free: 20.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3651, allocations: 0 / 466.6 MB, free: 20.93 MB / 366.1 MB Notification: Performance of Templates: time 0.005959/0.3711, allocations: 2.652 MB / 469.2 MB, free: 20.64 MB / 366.1 MB make -j1 -f ExternData_ExternData.Examples.XMLTestInnerOuter.makefile (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 & ./ExternData_ExternData.Examples.XMLTestInnerOuter -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1)