Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.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.0008064/0.0008064, 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.0008184/0.0008184, 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.9221/0.9221, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7326/0.7326, allocations: 154.6 MB / 413.8 MB, free: 0.8086 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.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(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 3.938 kB / 0.6181 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.966e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.0023/0.002319, allocations: 1.626 MB / 0.6197 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.000815/0.003134, allocations: 0.6504 MB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.867e-05/0.003203, allocations: 0 / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.003346, allocations: 23.75 kB / 0.6203 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.003534, allocations: 39.75 kB / 0.6204 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.003866, allocations: 131.6 kB / 0.6205 GB, free: 11.2 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.004078, allocations: 195.5 kB / 0.6207 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.004186, allocations: 21.61 kB / 0.6207 GB, free: 10.98 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.004376, allocations: 119.8 kB / 0.6208 GB, free: 10.86 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 9.485e-05/0.004471, allocations: 71.78 kB / 0.6209 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.004498, allocations: 16 kB / 0.6209 GB, free: 10.78 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.554e-05/0.004563, allocations: 31.94 kB / 0.6209 GB, free: 10.75 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 6.786e-05/0.004631, allocations: 27.91 kB / 0.621 GB, free: 10.72 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 5.549e-05/0.004687, allocations: 55.89 kB / 0.621 GB, free: 10.66 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.004914, allocations: 191.5 kB / 0.6212 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.004917, allocations: 0 / 0.6212 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.242e-06/0.004918, allocations: 0 / 0.6212 GB, free: 10.48 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.004922, allocations: 4 kB / 0.6212 GB, free: 10.47 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005092/0.005432, allocations: 0.4886 MB / 0.6217 GB, free: 9.93 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.005468, allocations: 12.03 kB / 0.6217 GB, free: 9.918 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.94e-05/0.005498, allocations: 34.75 kB / 0.6217 GB, free: 9.875 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.00562, allocations: 28.83 kB / 0.6218 GB, free: 9.848 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.00588, allocations: 177.7 kB / 0.6219 GB, free: 9.648 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.005894, allocations: 8.375 kB / 0.6219 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.031e-05/0.005914, allocations: 16.38 kB / 0.6219 GB, free: 9.625 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.006121, allocations: 173.6 kB / 0.6221 GB, free: 9.438 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.006128, allocations: 192 / 0.6221 GB, free: 9.438 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.311e-05/0.006142, allocations: 11.88 kB / 0.6221 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.006146, allocations: 0 / 0.6221 GB, free: 9.426 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001317/0.006278, allocations: 131.3 kB / 0.6222 GB, free: 9.285 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/0.006709, allocations: 359.8 kB / 0.6226 GB, free: 8.891 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.006852, allocations: 145.9 kB / 0.6227 GB, free: 8.727 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.006956, allocations: 128.2 kB / 0.6229 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.006975, allocations: 0 / 0.6229 GB, free: 8.586 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.007154, allocations: 234.1 kB / 0.6231 GB, free: 8.32 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.007155, allocations: 0 / 0.6231 GB, free: 8.32 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0005011/0.007656, allocations: 487.7 kB / 0.6235 GB, free: 7.801 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.007734, allocations: 162.2 kB / 0.6237 GB, free: 7.605 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.007869, allocations: 180.1 kB / 0.6239 GB, free: 7.418 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.007889, allocations: 33.7 kB / 0.6239 GB, free: 7.379 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.296e-05/0.007952, allocations: 112.3 kB / 0.624 GB, free: 7.262 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.007974, allocations: 23.84 kB / 0.624 GB, free: 7.238 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.00803, allocations: 41.7 kB / 0.6241 GB, free: 7.191 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.122e-05/0.008121, allocations: 326.8 kB / 0.6244 GB, free: 6.863 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.008248, allocations: 162.7 kB / 0.6245 GB, free: 6.68 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.008391, allocations: 213.6 kB / 0.6247 GB, free: 6.422 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/0.008618, allocations: 316.9 kB / 0.625 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.008621, allocations: 0 / 0.625 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003863/0.009007, allocations: 467 kB / 0.6255 GB, free: 5.539 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.572e-05/0.009073, allocations: 118.8 kB / 0.6256 GB, free: 5.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.00908, allocations: 4 kB / 0.6256 GB, free: 5.395 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.009098, allocations: 4 kB / 0.6256 GB, free: 5.391 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.956e-05/0.009187, allocations: 23.92 kB / 0.6256 GB, free: 5.367 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.009194, allocations: 0 / 0.6256 GB, free: 5.367 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.708e-05/0.009251, allocations: 19.89 kB / 0.6256 GB, free: 5.348 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.009272, allocations: 20.23 kB / 0.6257 GB, free: 5.328 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001359/0.009408, allocations: 198.1 kB / 0.6259 GB, free: 5.113 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.009431, allocations: 20.19 kB / 0.6259 GB, free: 5.094 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.009463, allocations: 21.45 kB / 0.6259 GB, free: 5.074 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.009465, allocations: 0 / 0.6259 GB, free: 5.074 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.00947, allocations: 3.938 kB / 0.6259 GB, free: 5.07 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.009473, allocations: 0 / 0.6259 GB, free: 5.07 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00049/0.009963, allocations: 0.5979 MB / 0.6265 GB, free: 4.398 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.009964, allocations: 3.938 kB / 0.6265 GB, free: 4.395 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.144e-05/0.009996, allocations: 19.98 kB / 0.6265 GB, free: 4.375 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.009997, allocations: 0 / 0.6265 GB, free: 4.375 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.01001, allocations: 4 kB / 0.6265 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.01001, allocations: 0 / 0.6265 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01001, allocations: 0 / 0.6265 GB, free: 4.371 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003383/0.01035, allocations: 470 kB / 0.627 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.332e-05/0.01036, allocations: 15.84 kB / 0.627 GB, free: 3.855 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.257e-05/0.01038, allocations: 8 kB / 0.627 GB, free: 3.848 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.597e-05/0.01044, allocations: 11.98 kB / 0.627 GB, free: 3.836 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/0.01047, allocations: 11.97 kB / 0.627 GB, free: 3.824 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.01049, allocations: 12 kB / 0.627 GB, free: 3.812 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 8.169e-05/0.01057, allocations: 134 kB / 0.6271 GB, free: 3.684 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.01057, allocations: 0 / 0.6271 GB, free: 3.684 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.000208/0.01078, allocations: 39.94 kB / 0.6272 GB, free: 3.645 MB / 0.5886 GB 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,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0006266/0.0114, allocations: 1.014 MB / 0.6282 GB, free: 2.582 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003772/0.01178, allocations: 0.5191 MB / 0.6287 GB, free: 1.977 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01178, allocations: 0 / 0.6287 GB, free: 1.977 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.01195, allocations: 242.1 kB / 0.6289 GB, free: 1.703 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002148/0.01216, allocations: 16.5 kB / 0.6289 GB, free: 1.688 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.01403, allocations: 2.631 MB / 0.6315 GB, free: 14.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.138e-05/0.0141, allocations: 101.2 kB / 0.6316 GB, free: 14.68 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.18e-05/0.01415, allocations: 20.47 kB / 0.6316 GB, free: 14.66 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.402e-05/0.01421, allocations: 36.48 kB / 0.6316 GB, free: 14.63 MB / 0.6042 GB Notification: Performance of SimCode: time 5.91e-07/0.01421, allocations: 0 / 0.6316 GB, free: 14.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.03206, allocations: 4.459 MB / 0.636 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.648/6.68, allocations: 12.52 kB / 0.636 GB, free: 10.36 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.390472580678761] Failed to read output from testmodel.py, exit status != 0: 6.761871490627527 6.771150743 6.764271911 Calling exit ...