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.001271/0.001271, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 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.00141/0.00141, allocations: 220.2 kB / 23.03 MB, free: 4.945 MB / 14.72 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 1.406/1.406, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.01808/0.01808, allocations: 3.281 MB / 316.5 MB, free: 15.72 MB / 254.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.CSVTest,fileNamePrefix="ExternData_ExternData_Examples_CSVTest",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 64.14 kB / 440.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09043/0.09235, allocations: 54.38 MB / 494.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.CSVTest): time 0.002768/0.09512, allocations: 1.51 MB / 496.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.09701, allocations: 1.355 MB / 497.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.298e-05/0.09706, allocations: 0 / 497.5 MB, free: 2.691 MB / 350.1 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.0002992/0.09736, allocations: 47.77 kB / 497.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.09746, allocations: 31.84 kB / 497.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.0977, allocations: 82.28 kB / 497.7 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.09782, allocations: 67.83 kB / 497.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.24e-05/0.09785, allocations: 4 kB / 497.7 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.007e-05/0.09791, allocations: 31.8 kB / 497.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.09816, allocations: 19.92 kB / 497.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.09817, allocations: 4 kB / 497.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.09835, allocations: 107.8 kB / 497.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.642e-05/0.0984, allocations: 15.94 kB / 497.9 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.094e-05/0.09848, allocations: 23.86 kB / 497.9 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.09871, allocations: 135.6 kB / 498.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.09872, allocations: 4 kB / 498.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09872, allocations: 4 kB / 498.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.09873, allocations: 0 / 498.1 MB, free: 2.125 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005286/0.09925, allocations: 359.4 kB / 498.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.09929, allocations: 15.97 kB / 498.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.634e-05/0.09931, allocations: 8.172 kB / 498.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.684e-05/0.09933, allocations: 30.75 kB / 498.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/0.09937, allocations: 8.891 kB / 498.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002485/0.09962, allocations: 154.3 kB / 498.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.016e-06/0.09963, allocations: 384 / 498.7 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.09964, allocations: 4.375 kB / 498.7 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/0.0998, allocations: 95.31 kB / 498.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.09981, allocations: 0 / 498.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.09981, allocations: 0 / 498.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.09982, allocations: 0 / 498.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.782e-05/0.09992, allocations: 65.69 kB / 498.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.1001, allocations: 140.7 kB / 498.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.1002, allocations: 76.2 kB / 499 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.178e-05/0.1003, allocations: 66.59 kB / 499.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.1003, allocations: 3.938 kB / 499.1 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.1005, allocations: 134.8 kB / 499.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.1005, allocations: 4 kB / 499.2 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004045/0.1009, allocations: 270.7 kB / 499.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.1009, allocations: 81.11 kB / 499.6 MB, free: 428 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.1011, allocations: 152.8 kB / 499.7 MB, free: 268 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.1011, allocations: 25.7 kB / 499.7 MB, free: 236 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.642e-05/0.1012, allocations: 92.14 kB / 499.8 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.1012, allocations: 27.78 kB / 499.9 MB, free: 112 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.62e-05/0.1012, allocations: 21.72 kB / 499.9 MB, free: 84 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1014, allocations: 322.8 kB / 0.4885 GB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.9e-05/0.1015, allocations: 53.69 kB / 0.4885 GB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.008e-05/0.1015, allocations: 61.69 kB / 0.4886 GB, free: 15.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.1017, allocations: 128.2 kB / 0.4887 GB, free: 15.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1017, allocations: 96 / 0.4887 GB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002553/0.1019, allocations: 204.8 kB / 0.4889 GB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.102, allocations: 41.69 kB / 0.4889 GB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.102, allocations: 0 / 0.4889 GB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.102, allocations: 0 / 0.4889 GB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.747e-05/0.102, allocations: 4 kB / 0.4889 GB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.102, allocations: 0 / 0.4889 GB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.698e-05/0.1021, allocations: 7.938 kB / 0.489 GB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1021, allocations: 4 kB / 0.489 GB, free: 15.21 MB / 366.1 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 0.0001419/0.1023, allocations: 171.4 kB / 0.4891 GB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/0.1023, allocations: 15.91 kB / 0.4891 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.307e-05/0.1023, allocations: 4.719 kB / 0.4891 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1023, allocations: 4 kB / 0.4891 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1023, allocations: 4 kB / 0.4892 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1023, allocations: 0 / 0.4892 GB, free: 15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.1025, allocations: 152.7 kB / 0.4893 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.1025, allocations: 0 / 0.4893 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.368e-05/0.1025, allocations: 7.984 kB / 0.4893 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1025, allocations: 0 / 0.4893 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.1025, allocations: 0 / 0.4893 GB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1025, allocations: 8 kB / 0.4893 GB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1025, allocations: 144 / 0.4893 GB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.1028, allocations: 256.3 kB / 0.4896 GB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.822e-05/0.1029, allocations: 11.89 kB / 0.4896 GB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.1029, allocations: 8 kB / 0.4896 GB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.403e-05/0.1029, allocations: 4 kB / 0.4896 GB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.565e-05/0.103, allocations: 7.922 kB / 0.4896 GB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.103, allocations: 4 kB / 0.4896 GB, free: 14.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.1031, allocations: 119.2 kB / 0.4897 GB, free: 14.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1031, allocations: 0 / 0.4897 GB, free: 14.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002479/0.1034, allocations: 35.94 kB / 0.4897 GB, free: 14.32 MB / 366.1 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.001376/0.1047, allocations: 0.9146 MB / 0.4906 GB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.105, allocations: 206.7 kB / 0.4908 GB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.105, allocations: 0 / 0.4908 GB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.1051, allocations: 129.1 kB / 0.491 GB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.1053, allocations: 4 kB / 0.491 GB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.1074, allocations: 1.877 MB / 0.4928 GB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.606e-05/0.1075, allocations: 79.27 kB / 0.4929 GB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.295e-05/0.1075, allocations: 8 kB / 0.4929 GB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.39e-05/0.1076, allocations: 27.42 kB / 0.4929 GB, free: 10.9 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1076, allocations: 0 / 0.4929 GB, free: 10.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.1339, allocations: 3.307 MB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.22, allocations: 0 / 0.4961 GB, free: 7.734 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.711655601975508] Failed to read output from testmodel.py, exit status != 0: 11.379587681032717 11.403700472 11.300656692 Calling exit ...