Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XLSTest.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.XLSTest,fileNamePrefix="ExternData_ExternData_Examples_XLSTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XLSTest,fileNamePrefix="ExternData_ExternData_Examples_XLSTest",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.006645/0.006645, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.00201/0.00201, allocations: 197 kB / 16.67 MB, free: 5.973 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1745/0.1745, allocations: 2.927 MB / 293.5 MB, free: 3.242 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 55.91 kB / 405.8 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3518, allocations: 50.35 MB / 456.1 MB, free: 28.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XLSTest): time 0.002818/0.3546, allocations: 1.662 MB / 457.8 MB, free: 27.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.357, allocations: 1.72 MB / 459.5 MB, free: 25.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.922e-05/0.3571, allocations: 0 / 459.5 MB, free: 25.9 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:191:3-219:14:writable] Warning: Pure function 'ExternData.XLSFile' contains a call to impure function 'ExternData.Types.ExternXLSFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003558/0.3574, allocations: 50.41 kB / 459.5 MB, free: 25.88 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/Examples/package.mo:101:5-121:22:writable] Warning: Pure function 'ExternData.Examples.XLSTest.computeColSum' contains a call to impure function 'ExternData.Types.ExternXLSFile.constructor'. Notification: Performance of NFTyping.typeBindings: time 0.0004587/0.3579, allocations: 179.7 kB / 459.7 MB, free: 25.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.3581, allocations: 91.25 kB / 459.8 MB, free: 25.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.3583, allocations: 85.69 kB / 459.9 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.271e-05/0.3584, allocations: 13.88 kB / 459.9 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.148e-05/0.3584, allocations: 45.45 kB / 459.9 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.3586, allocations: 39.14 kB / 460 MB, free: 25.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.3586, allocations: 6.969 kB / 460 MB, free: 25.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002938/0.3589, allocations: 273.3 kB / 460.3 MB, free: 25.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-05/0.359, allocations: 21.34 kB / 460.3 MB, free: 25.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.808e-05/0.3591, allocations: 47.11 kB / 460.3 MB, free: 25.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.3595, allocations: 320.7 kB / 460.6 MB, free: 25.41 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3595, allocations: 0 / 460.6 MB, free: 25.41 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3595, allocations: 3.938 kB / 460.6 MB, free: 25.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.3595, allocations: 0 / 460.6 MB, free: 25.4 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.0005932/0.3601, allocations: 0.4933 MB / 461.1 MB, free: 24.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3601, allocations: 13.39 kB / 461.2 MB, free: 24.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.909e-05/0.3602, allocations: 41.84 kB / 461.2 MB, free: 24.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.3602, allocations: 16 kB / 461.2 MB, free: 24.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.3605, allocations: 229.8 kB / 461.4 MB, free: 24.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.3605, allocations: 0 / 461.4 MB, free: 24.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.3606, allocations: 3.312 kB / 461.4 MB, free: 24.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.3608, allocations: 97.41 kB / 461.5 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.3608, allocations: 3.328 kB / 461.5 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.3608, allocations: 3.984 kB / 461.5 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3608, allocations: 3.188 kB / 461.5 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.3609, allocations: 57.81 kB / 461.6 MB, free: 24.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003791/0.3613, allocations: 319.1 kB / 461.9 MB, free: 24.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.3616, allocations: 94.06 kB / 462 MB, free: 24.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.521e-05/0.3617, allocations: 65.3 kB / 462.1 MB, free: 24.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.3617, allocations: 3.328 kB / 462.1 MB, free: 24.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001975/0.3619, allocations: 142.7 kB / 462.2 MB, free: 24.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.213e-06/0.3619, allocations: 0 / 462.2 MB, free: 24.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004273/0.3623, allocations: 235 kB / 462.4 MB, free: 23.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.3624, allocations: 109.8 kB / 462.5 MB, free: 23.78 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.3626, allocations: 175.5 kB / 462.7 MB, free: 23.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.3626, allocations: 28.86 kB / 462.7 MB, free: 23.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.3626, allocations: 98.69 kB / 462.8 MB, free: 23.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.271e-05/0.3627, allocations: 30.42 kB / 462.9 MB, free: 23.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.303e-05/0.3627, allocations: 23.06 kB / 462.9 MB, free: 23.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.945e-05/0.3628, allocations: 325.1 kB / 463.2 MB, free: 23.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.736e-05/0.3629, allocations: 40.45 kB / 463.2 MB, free: 23.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.269e-05/0.3629, allocations: 58.03 kB / 463.3 MB, free: 23.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.3631, allocations: 147.8 kB / 463.5 MB, free: 23.01 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3631, allocations: 3.938 kB / 463.5 MB, free: 23.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002444/0.3634, allocations: 196.5 kB / 463.6 MB, free: 22.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.3634, allocations: 36.11 kB / 463.7 MB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3634, allocations: 7.312 kB / 463.7 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.3634, allocations: 3.938 kB / 463.7 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.89e-05/0.3635, allocations: 12.78 kB / 463.7 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3635, allocations: 320 / 463.7 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.374e-05/0.3636, allocations: 10.03 kB / 463.7 MB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.3636, allocations: 6.312 kB / 463.7 MB, free: 22.86 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 8.402e-05/0.3637, allocations: 163.8 kB / 463.9 MB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.073e-05/0.3637, allocations: 14.53 kB / 463.9 MB, free: 22.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.3638, allocations: 19.5 kB / 463.9 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3638, allocations: 2.781 kB / 463.9 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3638, allocations: 3.562 kB / 463.9 MB, free: 22.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3638, allocations: 3.938 kB / 463.9 MB, free: 22.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.3639, allocations: 207.9 kB / 464.1 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.3639, allocations: 3.312 kB / 464.1 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.873e-05/0.364, allocations: 9.469 kB / 464.1 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.364, allocations: 336 / 464.1 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.364, allocations: 7.062 kB / 464.1 MB, free: 22.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.364, allocations: 7.172 kB / 464.2 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.364, allocations: 4 kB / 464.2 MB, free: 22.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.3643, allocations: 251 kB / 464.4 MB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-05/0.3644, allocations: 91.56 kB / 464.5 MB, free: 22.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.3644, allocations: 6.812 kB / 464.5 MB, free: 22.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.825e-05/0.3645, allocations: 9.391 kB / 464.5 MB, free: 22.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.725e-05/0.3645, allocations: 11.09 kB / 464.5 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.3646, allocations: 10.45 kB / 464.5 MB, free: 22.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.3647, allocations: 134.6 kB / 464.7 MB, free: 22.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3647, allocations: 0 / 464.7 MB, free: 22.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003344/0.365, allocations: 97.59 kB / 464.8 MB, free: 22.06 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.001254/0.3663, allocations: 1.144 MB / 465.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002891/0.3666, allocations: 195.3 kB / 466.1 MB, free: 21.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3666, allocations: 0 / 466.1 MB, free: 21.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.3667, allocations: 142.3 kB / 466.2 MB, free: 21.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.3669, allocations: 14.12 kB / 466.2 MB, free: 21.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001681/0.3686, allocations: 1.942 MB / 468.2 MB, free: 19.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.3688, allocations: 0.7022 MB / 468.9 MB, free: 18.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.496e-05/0.3688, allocations: 20.41 kB / 468.9 MB, free: 18.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-05/0.3689, allocations: 39.89 kB / 468.9 MB, free: 18.85 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3689, allocations: 0 / 468.9 MB, free: 18.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.3922, allocations: 4.873 MB / 473.8 MB, free: 18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.217, allocations: 9.828 kB / 473.8 MB, free: 18 MB / 366.1 MB (rm -f ExternData_ExternData.Examples.XLSTest.pipe ; mkfifo ExternData_ExternData.Examples.XLSTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XLSTest.pipe >> ../files/ExternData_ExternData.Examples.XLSTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XLSTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_XLSTest.fmu > ExternData_ExternData.Examples.XLSTest.pipe 2>&1)