Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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.0009086/0.0009086, 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.001027/0.001027, 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.9103/0.9103, 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/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.733/0.733, allocations: 154.6 MB / 413.7 MB, free: 0.8242 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 master/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_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 3.938 kB / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.473e-05, allocations: 8.672 kB / 0.618 GB, free: 13.77 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00274/0.002765, allocations: 1.623 MB / 0.6196 GB, free: 12.13 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.003685, allocations: 0.6426 MB / 0.6203 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.689e-05/0.003781, allocations: 4 kB / 0.6203 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.003948, allocations: 23.8 kB / 0.6203 GB, free: 11.46 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0002279/0.004176, allocations: 47.69 kB / 0.6203 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.004595, allocations: 127.6 kB / 0.6205 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002334/0.004828, allocations: 191.5 kB / 0.6206 GB, free: 11.1 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.004939, allocations: 17.62 kB / 0.6206 GB, free: 11.07 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.00515, allocations: 111.8 kB / 0.6208 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.00525, allocations: 79.78 kB / 0.6208 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.005279, allocations: 12 kB / 0.6208 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 8.467e-05/0.005364, allocations: 39.92 kB / 0.6209 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 8.013e-05/0.005444, allocations: 23.92 kB / 0.6209 GB, free: 10.81 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 6.647e-05/0.005511, allocations: 55.89 kB / 0.621 GB, free: 10.76 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002426/0.005753, allocations: 191.5 kB / 0.6211 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.005757, allocations: 4 kB / 0.6211 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.252e-06/0.005758, allocations: 0 / 0.6211 GB, free: 10.57 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 5e-06/0.005763, allocations: 3.938 kB / 0.6211 GB, free: 10.56 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.0005496/0.006313, allocations: 0.4886 MB / 0.6216 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.006362, allocations: 9.469 kB / 0.6216 GB, free: 10.01 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.191e-05/0.006394, allocations: 38.75 kB / 0.6217 GB, free: 9.965 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.00653, allocations: 32.83 kB / 0.6217 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.006817, allocations: 177.8 kB / 0.6219 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.006832, allocations: 4.375 kB / 0.6219 GB, free: 9.73 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.006851, allocations: 12.38 kB / 0.6219 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002253/0.007077, allocations: 177.5 kB / 0.6221 GB, free: 9.527 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.007084, allocations: 192 / 0.6221 GB, free: 9.527 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.007098, allocations: 7.938 kB / 0.6221 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.007103, allocations: 0 / 0.6221 GB, free: 9.52 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.007233, allocations: 131.3 kB / 0.6222 GB, free: 9.379 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004733/0.007706, allocations: 359.8 kB / 0.6225 GB, free: 8.984 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.007855, allocations: 137.9 kB / 0.6227 GB, free: 8.828 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.007961, allocations: 128.2 kB / 0.6228 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.007983, allocations: 0 / 0.6228 GB, free: 8.688 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001996/0.008182, allocations: 250.2 kB / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.008183, allocations: 0 / 0.623 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.0005153/0.008699, allocations: 479.6 kB / 0.6235 GB, free: 7.895 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/0.008767, allocations: 162.2 kB / 0.6236 GB, free: 7.699 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.00889, allocations: 188 kB / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.008908, allocations: 33.7 kB / 0.6238 GB, free: 7.465 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.278e-05/0.00897, allocations: 108.4 kB / 0.624 GB, free: 7.352 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.008998, allocations: 31.77 kB / 0.624 GB, free: 7.32 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.023e-05/0.009058, allocations: 41.7 kB / 0.624 GB, free: 7.273 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.009162, allocations: 322.8 kB / 0.6243 GB, free: 6.949 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.009298, allocations: 162.8 kB / 0.6245 GB, free: 6.766 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.009433, allocations: 213.6 kB / 0.6247 GB, free: 6.508 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.009641, allocations: 312.9 kB / 0.625 GB, free: 6.141 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.009644, allocations: 4 kB / 0.625 GB, free: 6.137 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003584/0.01, allocations: 459 kB / 0.6254 GB, free: 5.633 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.734e-05/0.01006, allocations: 123 kB / 0.6255 GB, free: 5.488 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.01007, allocations: 3.938 kB / 0.6256 GB, free: 5.484 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.01008, allocations: 4 kB / 0.6256 GB, free: 5.48 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.918e-05/0.01016, allocations: 19.98 kB / 0.6256 GB, free: 5.461 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.01017, allocations: 4 kB / 0.6256 GB, free: 5.457 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.596e-05/0.01023, allocations: 11.95 kB / 0.6256 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.01025, allocations: 11.98 kB / 0.6256 GB, free: 5.434 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.0001207/0.01037, allocations: 205.3 kB / 0.6258 GB, free: 5.215 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.204e-05/0.01039, allocations: 15.91 kB / 0.6258 GB, free: 5.199 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.9e-05/0.01042, allocations: 17.45 kB / 0.6258 GB, free: 5.18 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.01042, allocations: 7.984 kB / 0.6258 GB, free: 5.172 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.01043, allocations: 8 kB / 0.6258 GB, free: 5.164 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.01043, allocations: 0 / 0.6258 GB, free: 5.164 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.01118, allocations: 0.602 MB / 0.6264 GB, free: 4.488 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01118, allocations: 3.938 kB / 0.6264 GB, free: 4.484 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.722e-05/0.01122, allocations: 19.92 kB / 0.6265 GB, free: 4.465 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.01122, allocations: 0 / 0.6265 GB, free: 4.465 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.01123, allocations: 4 kB / 0.6265 GB, free: 4.461 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.01123, allocations: 8 kB / 0.6265 GB, free: 4.453 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.01124, allocations: 0 / 0.6265 GB, free: 4.453 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.01157, allocations: 474 kB / 0.6269 GB, free: 3.949 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.38e-05/0.01159, allocations: 11.91 kB / 0.6269 GB, free: 3.938 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.01161, allocations: 4 kB / 0.6269 GB, free: 3.934 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.509e-05/0.01167, allocations: 7.984 kB / 0.6269 GB, free: 3.926 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.01171, allocations: 11.98 kB / 0.627 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.01172, allocations: 4 kB / 0.627 GB, free: 3.91 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.176e-05/0.01179, allocations: 137.7 kB / 0.6271 GB, free: 3.777 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01179, allocations: 4 kB / 0.6271 GB, free: 3.773 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002121/0.012, allocations: 39.94 kB / 0.6271 GB, free: 3.734 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.0006467/0.01265, allocations: 1.018 MB / 0.6281 GB, free: 2.668 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0003679/0.01301, allocations: 0.5191 MB / 0.6286 GB, free: 2.062 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01302, allocations: 0 / 0.6286 GB, free: 2.062 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.01316, allocations: 242.1 kB / 0.6289 GB, free: 1.789 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002285/0.01339, allocations: 20 kB / 0.6289 GB, free: 1.77 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.01533, allocations: 2.631 MB / 0.6314 GB, free: 14.88 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.023e-05/0.0154, allocations: 93.17 kB / 0.6315 GB, free: 14.77 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.073e-05/0.01546, allocations: 20.47 kB / 0.6316 GB, free: 14.75 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.165e-05/0.01552, allocations: 44.48 kB / 0.6316 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of SimCode: time 8.72e-07/0.01552, allocations: 0 / 0.6316 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02209/0.03761, allocations: 4.466 MB / 0.636 GB, free: 10.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.345/7.382, allocations: 4.484 kB / 0.636 GB, free: 10.44 MB / 0.6042 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.104679465293884] Failed to read output from testmodel.py, exit status != 0: 7.467104023322463 7.479737536 7.471923255 Calling exit ...