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.005245/0.005245, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.00125/0.00125, allocations: 198.4 kB / 16.68 MB, free: 5.926 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1371/0.1371, allocations: 2.93 MB / 293.5 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 63.89 kB / 405.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2552, allocations: 50.34 MB / 456.1 MB, free: 27.93 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XLSTest): time 0.002313/0.2576, allocations: 1.674 MB / 457.8 MB, free: 26.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.2595, allocations: 1.717 MB / 459.5 MB, free: 25.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.567e-05/0.2596, allocations: 0 / 459.5 MB, free: 25.58 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.0003106/0.2599, allocations: 45.73 kB / 459.5 MB, free: 25.55 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.0004085/0.2603, allocations: 174.5 kB / 459.7 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001986/0.2605, allocations: 87.67 kB / 459.8 MB, free: 25.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.2606, allocations: 102.1 kB / 459.9 MB, free: 25.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.824e-05/0.2607, allocations: 11.94 kB / 459.9 MB, free: 25.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.746e-05/0.2608, allocations: 34.48 kB / 459.9 MB, free: 25.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2609, allocations: 53.17 kB / 460 MB, free: 25.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.261, allocations: 6.125 kB / 460 MB, free: 25.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002948/0.2613, allocations: 266.9 kB / 460.3 MB, free: 25.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.229e-05/0.2613, allocations: 28.14 kB / 460.3 MB, free: 25.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.121e-05/0.2614, allocations: 48 kB / 460.3 MB, free: 25.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.2617, allocations: 311.8 kB / 460.6 MB, free: 25.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2617, allocations: 0 / 460.6 MB, free: 25.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2617, allocations: 3.031 kB / 460.6 MB, free: 25.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.2617, allocations: 0 / 460.6 MB, free: 25.08 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.0005193/0.2623, allocations: 0.4887 MB / 461.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.2623, allocations: 13.36 kB / 461.1 MB, free: 24.61 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.476e-05/0.2623, allocations: 37.41 kB / 461.2 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.2624, allocations: 11.94 kB / 461.2 MB, free: 24.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.2626, allocations: 225.1 kB / 461.4 MB, free: 24.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.683e-06/0.2626, allocations: 11.31 kB / 461.4 MB, free: 24.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.2626, allocations: 11.12 kB / 461.4 MB, free: 24.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.2628, allocations: 93.56 kB / 461.5 MB, free: 24.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.2628, allocations: 0 / 461.5 MB, free: 24.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.2628, allocations: 2.844 kB / 461.5 MB, free: 24.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2628, allocations: 0 / 461.5 MB, free: 24.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.263, allocations: 53.58 kB / 461.6 MB, free: 24.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003044/0.2633, allocations: 332.1 kB / 461.9 MB, free: 23.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.2635, allocations: 101.4 kB / 462 MB, free: 23.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.613e-05/0.2636, allocations: 66.2 kB / 462.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.2636, allocations: 0 / 462.1 MB, free: 23.82 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.2638, allocations: 131.3 kB / 462.2 MB, free: 23.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.2638, allocations: 0 / 462.2 MB, free: 23.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.000392/0.2642, allocations: 235.1 kB / 462.4 MB, free: 23.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.209e-05/0.2642, allocations: 116.6 kB / 462.5 MB, free: 23.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.2643, allocations: 176.1 kB / 462.7 MB, free: 23.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.2644, allocations: 25.7 kB / 462.7 MB, free: 23.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.112e-05/0.2644, allocations: 98.3 kB / 462.8 MB, free: 23.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.633e-05/0.2644, allocations: 29.94 kB / 462.9 MB, free: 23.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.2645, allocations: 26.73 kB / 462.9 MB, free: 23.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.2645, allocations: 321.4 kB / 463.2 MB, free: 22.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.2646, allocations: 35.42 kB / 463.2 MB, free: 22.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.418e-05/0.2647, allocations: 62.08 kB / 463.3 MB, free: 22.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.2648, allocations: 152.8 kB / 463.4 MB, free: 22.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2649, allocations: 3.938 kB / 463.4 MB, free: 22.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002484/0.2651, allocations: 188 kB / 463.6 MB, free: 22.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.2652, allocations: 39.67 kB / 463.7 MB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.2652, allocations: 7.125 kB / 463.7 MB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.2652, allocations: 3.938 kB / 463.7 MB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.877e-05/0.2652, allocations: 17.62 kB / 463.7 MB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.2653, allocations: 0 / 463.7 MB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.266e-05/0.2653, allocations: 9.703 kB / 463.7 MB, free: 22.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.2654, allocations: 3.125 kB / 463.7 MB, free: 22.54 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.592e-05/0.2654, allocations: 159.8 kB / 463.9 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.045e-05/0.2655, allocations: 13.62 kB / 463.9 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.011e-05/0.2655, allocations: 19 kB / 463.9 MB, free: 22.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2655, allocations: 0 / 463.9 MB, free: 22.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2655, allocations: 4 kB / 463.9 MB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.2655, allocations: 3.094 kB / 463.9 MB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.2657, allocations: 212.3 kB / 464.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2657, allocations: 3.125 kB / 464.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.757e-05/0.2657, allocations: 6.281 kB / 464.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2657, allocations: 3.281 kB / 464.1 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.2658, allocations: 14.61 kB / 464.1 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2658, allocations: 0 / 464.1 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2658, allocations: 0 / 464.1 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003045/0.2661, allocations: 249.2 kB / 464.4 MB, free: 21.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.2661, allocations: 90.41 kB / 464.5 MB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.2662, allocations: 11.09 kB / 464.5 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.754e-05/0.2662, allocations: 10.53 kB / 464.5 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.2663, allocations: 3.219 kB / 464.5 MB, free: 21.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.2663, allocations: 10.16 kB / 464.5 MB, free: 21.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.455e-05/0.2664, allocations: 135.5 kB / 464.6 MB, free: 21.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2664, allocations: 4 kB / 464.6 MB, free: 21.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.2667, allocations: 98.34 kB / 464.7 MB, free: 21.75 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.001289/0.268, allocations: 1.144 MB / 465.9 MB, free: 20.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002644/0.2683, allocations: 190.8 kB / 466.1 MB, free: 20.83 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2683, allocations: 4 kB / 466.1 MB, free: 20.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.2684, allocations: 134.2 kB / 466.2 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002189/0.2686, allocations: 16.94 kB / 466.2 MB, free: 20.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.2703, allocations: 1.93 MB / 468.1 MB, free: 19.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.2704, allocations: 0.7059 MB / 468.9 MB, free: 18.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.233e-05/0.2705, allocations: 20.56 kB / 468.9 MB, free: 18.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.323e-05/0.2706, allocations: 39.88 kB / 468.9 MB, free: 18.56 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2706, allocations: 0 / 468.9 MB, free: 18.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/0.2937, allocations: 4.935 MB / 473.8 MB, free: 17.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.566/7.859, allocations: 3.625 kB / 473.9 MB, free: 17.68 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XLSTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XLSTest.fmu > ExternData_ExternData.Examples.XLSTest.pipe 2>&1)