Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.CSVTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008402/0.0008402, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008372/0.0008372, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8629/0.8629, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.009114/0.009114, allocations: 2.248 MB / 261.4 MB, free: 10.98 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 385.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.326e-05/1.446e-05, allocations: 6.281 kB / 385.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.001932/0.001946, allocations: 1.513 MB / 386.8 MB, free: 9.672 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.003198, allocations: 1.375 MB / 388.2 MB, free: 8.289 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.825e-05/0.003247, allocations: 0 / 388.2 MB, free: 8.289 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:35:3-59:14:writable] Warning: Pure function 'ExternData.CSVFile' contains a call to impure function 'ExternData.Types.ExternCSVFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.003566, allocations: 47.72 kB / 388.2 MB, free: 8.242 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 9.244e-05/0.003658, allocations: 35.78 kB / 388.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.003898, allocations: 83.67 kB / 388.3 MB, free: 8.125 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.004003, allocations: 55.84 kB / 388.4 MB, free: 8.07 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.401e-05/0.004037, allocations: 0 / 388.4 MB, free: 8.07 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.174e-05/0.004108, allocations: 47.83 kB / 388.4 MB, free: 8.023 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.004224, allocations: 23.92 kB / 388.5 MB, free: 8 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.00424, allocations: 4 kB / 388.5 MB, free: 7.996 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.004368, allocations: 91.91 kB / 388.6 MB, free: 7.906 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.875e-05/0.004427, allocations: 23.91 kB / 388.6 MB, free: 7.883 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.799e-05/0.004465, allocations: 15.94 kB / 388.6 MB, free: 7.867 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.004666, allocations: 159.5 kB / 388.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.004668, allocations: 0 / 388.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.004669, allocations: 0 / 388.8 MB, free: 7.711 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.004673, allocations: 3.938 kB / 388.8 MB, free: 7.707 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004653/0.005138, allocations: 355.5 kB / 389.1 MB, free: 7.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.005176, allocations: 16.03 kB / 389.1 MB, free: 7.309 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.971e-05/0.005206, allocations: 34.73 kB / 389.2 MB, free: 7.266 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.00524, allocations: 8.891 kB / 389.2 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.005421, allocations: 145.6 kB / 389.3 MB, free: 7.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.005431, allocations: 384 / 389.3 MB, free: 7.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.005441, allocations: 4.375 kB / 389.3 MB, free: 7.086 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.005572, allocations: 91.94 kB / 389.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.005579, allocations: 192 / 389.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.005591, allocations: 8.125 kB / 389.4 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.005595, allocations: 0 / 389.4 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.614e-05/0.005661, allocations: 61.62 kB / 389.5 MB, free: 6.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.005828, allocations: 152.7 kB / 389.6 MB, free: 6.719 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.323e-05/0.005901, allocations: 76.27 kB / 389.7 MB, free: 6.629 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.932e-05/0.005961, allocations: 58.59 kB / 389.8 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.005971, allocations: 0 / 389.8 MB, free: 6.562 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001467/0.006118, allocations: 138.8 kB / 389.9 MB, free: 6.402 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.006119, allocations: 0 / 389.9 MB, free: 6.402 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003065/0.006425, allocations: 270.8 kB / 390.2 MB, free: 6.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.006468, allocations: 77.11 kB / 390.2 MB, free: 6.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.006578, allocations: 153.8 kB / 390.4 MB, free: 5.859 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.006592, allocations: 25.7 kB / 390.4 MB, free: 5.828 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.251e-05/0.006634, allocations: 96.14 kB / 390.5 MB, free: 5.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.006709, allocations: 27.97 kB / 390.5 MB, free: 5.703 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.006742, allocations: 21.72 kB / 390.5 MB, free: 5.676 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.006e-05/0.006832, allocations: 322.8 kB / 390.9 MB, free: 5.352 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.865e-05/0.00688, allocations: 57.69 kB / 390.9 MB, free: 5.289 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.37e-05/0.006924, allocations: 61.62 kB / 391 MB, free: 5.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.696e-05/0.007021, allocations: 132.1 kB / 391.1 MB, free: 5.078 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.007023, allocations: 0 / 391.1 MB, free: 5.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001588/0.007182, allocations: 197 kB / 391.3 MB, free: 4.867 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.007214, allocations: 44.59 kB / 391.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.007218, allocations: 0 / 391.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.00723, allocations: 8.141 kB / 391.4 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.836e-05/0.007288, allocations: 11.88 kB / 391.4 MB, free: 4.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.007293, allocations: 3.984 kB / 391.4 MB, free: 4.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.112e-05/0.007344, allocations: 7.953 kB / 391.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.007353, allocations: 7.984 kB / 391.4 MB, free: 4.781 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 3 * 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.929e-05/0.007432, allocations: 155.5 kB / 391.5 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.007446, allocations: 7.953 kB / 391.5 MB, free: 4.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.861e-05/0.007465, allocations: 16.7 kB / 391.6 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.007466, allocations: 0 / 391.6 MB, free: 4.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.00747, allocations: 4 kB / 391.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.007473, allocations: 0 / 391.6 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.598e-05/0.007559, allocations: 152.7 kB / 391.7 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.00756, allocations: 0 / 391.7 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.337e-06/0.007569, allocations: 0 / 391.7 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.007573, allocations: 8 kB / 391.7 MB, free: 4.387 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.007583, allocations: 7.922 kB / 391.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.007584, allocations: 0 / 391.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.007585, allocations: 0 / 391.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002026/0.007787, allocations: 252.4 kB / 392 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.796e-05/0.007805, allocations: 15.97 kB / 392 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.007824, allocations: 19.88 kB / 392 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.047e-05/0.007855, allocations: 4 kB / 392 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.007881, allocations: 3.984 kB / 392 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.007893, allocations: 4 kB / 392 MB, free: 4.055 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.048e-05/0.007954, allocations: 119.2 kB / 392.1 MB, free: 3.938 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007954, allocations: 0 / 392.1 MB, free: 3.938 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001617/0.008116, allocations: 39.94 kB / 392.2 MB, free: 3.898 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 2 * 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.0006901/0.008806, allocations: 0.9155 MB / 393.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001748/0.008981, allocations: 198.7 kB / 393.3 MB, free: 2.762 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.008982, allocations: 0 / 393.3 MB, free: 2.762 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.57e-05/0.009048, allocations: 129.1 kB / 393.4 MB, free: 2.617 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.009194, allocations: 15.5 kB / 393.4 MB, free: 2.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.01056, allocations: 1.9 MB / 395.3 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.978e-05/0.01062, allocations: 79.27 kB / 395.4 MB, free: 500 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.471e-05/0.01065, allocations: 19.72 kB / 395.4 MB, free: 480 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.0107, allocations: 24.5 kB / 395.5 MB, free: 456 kB / 314.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0107, allocations: 0 / 395.5 MB, free: 456 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0161/0.02679, allocations: 3.76 MB / 399.2 MB, free: 12.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.623/6.65, allocations: 3.859 kB / 399.2 MB, free: 12.78 MB / 330.7 MB " [Timeout remaining time 653] (rm -f ExternData_ExternData.Examples.CSVTest.pipe ; mkfifo ExternData_ExternData.Examples.CSVTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.CSVTest.pipe >> ../files/ExternData_ExternData.Examples.CSVTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_CSVTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_CSVTest.fmu > ExternData_ExternData.Examples.CSVTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.391513789072633] Failed to read output from testmodel.py, exit status != 0: 6.7282061483711 6.873678963 6.730475414 Calling exit ...