Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001455/0.001455, allocations: 118.7 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001576/0.001576, allocations: 210.5 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.436/1.436, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 59.89 kB / 373.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1104, allocations: 53.31 MB / 426.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001695/0.1121, allocations: 497.4 kB / 427.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002482/0.1123, allocations: 67.78 kB / 427.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.259e-05/0.1124, allocations: 0 / 427.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.924e-05/0.1124, allocations: 4 kB / 427.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.738e-05/0.1125, allocations: 11.92 kB / 427.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.1126, allocations: 19.97 kB / 427.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.908e-05/0.1127, allocations: 19.92 kB / 427.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.496e-05/0.1127, allocations: 4 kB / 427.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.764e-05/0.1128, allocations: 19.97 kB / 427.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.428e-05/0.1129, allocations: 23.98 kB / 427.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.1129, allocations: 0 / 427.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.5e-05/0.1129, allocations: 15.86 kB / 427.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.392e-05/0.113, allocations: 7.984 kB / 427.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.836e-05/0.113, allocations: 11.94 kB / 427.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.25e-05/0.1131, allocations: 19.92 kB / 427.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1131, allocations: 0 / 427.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1131, allocations: 0 / 427.6 MB, free: 4.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.1131, allocations: 0 / 427.6 MB, free: 4.207 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004584/0.1136, allocations: 369 kB / 427.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1136, allocations: 8.031 kB / 427.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.992e-05/0.1137, allocations: 46.69 kB / 428 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.1137, allocations: 4.891 kB / 428 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.1139, allocations: 168.4 kB / 428.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.1139, allocations: 384 / 428.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.1139, allocations: 4.375 kB / 428.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.114, allocations: 74.17 kB / 428.2 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.114, allocations: 3.938 kB / 428.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.114, allocations: 0 / 428.2 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.114, allocations: 7.938 kB / 428.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.143e-05/0.1141, allocations: 31.98 kB / 428.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002728/0.1144, allocations: 248.9 kB / 428.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.1145, allocations: 70.42 kB / 428.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.1145, allocations: 44.91 kB / 428.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.1145, allocations: 4 kB / 428.6 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/0.1146, allocations: 64.25 kB / 428.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.1146, allocations: 0 / 428.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003378/0.1149, allocations: 215.4 kB / 428.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.115, allocations: 85.05 kB / 429 MB, free: 2.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.392e-05/0.1151, allocations: 113.9 kB / 429.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.1151, allocations: 29.7 kB / 429.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/0.1152, allocations: 80.14 kB / 429.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.1152, allocations: 23.84 kB / 429.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.823e-05/0.1152, allocations: 21.72 kB / 429.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1154, allocations: 322.8 kB / 429.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.948e-05/0.1154, allocations: 27.98 kB / 429.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.166e-05/0.1155, allocations: 35.98 kB / 429.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.1156, allocations: 132.5 kB / 429.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1156, allocations: 0 / 429.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002144/0.1158, allocations: 171.2 kB / 429.9 MB, free: 1.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.1159, allocations: 33.7 kB / 429.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.1159, allocations: 7.922 kB / 429.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1159, allocations: 0 / 429.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.675e-05/0.1159, allocations: 8 kB / 430 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.1159, allocations: 0 / 430 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.398e-05/0.116, allocations: 7.938 kB / 430 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.116, allocations: 7.984 kB / 430 MB, free: 1.5 MB / 350.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: 8 ($outputAlias_success4,success4,$outputAlias_success3,success3,$outputAlias_success2,success2,$outputAlias_success1,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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.0001252/0.1161, allocations: 151.4 kB / 430.1 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.1161, allocations: 7.953 kB / 430.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.1161, allocations: 12.38 kB / 430.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1161, allocations: 0 / 430.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1162, allocations: 0 / 430.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1162, allocations: 4 kB / 430.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/0.1166, allocations: 436.1 kB / 430.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1166, allocations: 4 kB / 430.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.13e-06/0.1166, allocations: 0 / 430.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1166, allocations: 0 / 430.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.1166, allocations: 8 kB / 430.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1166, allocations: 0 / 430.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1166, allocations: 0 / 430.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.1169, allocations: 293 kB / 430.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.117, allocations: 85.05 kB / 431 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.117, allocations: 4.484 kB / 431 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.641e-05/0.117, allocations: 8 kB / 431 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.367e-05/0.1171, allocations: 0 / 431 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.1171, allocations: 11.98 kB / 431 MB, free: 388 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.657e-05/0.1171, allocations: 91.27 kB / 431.1 MB, free: 296 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1171, allocations: 0 / 431.1 MB, free: 296 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1173, allocations: 15.94 kB / 431.1 MB, free: 280 kB / 350.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: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.0009815/0.1183, allocations: 0.8983 MB / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002342/0.1186, allocations: 139.3 kB / 432.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1186, allocations: 4 kB / 432.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.703e-05/0.1186, allocations: 91.39 kB / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.1189, allocations: 4 kB / 432.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/0.1205, allocations: 1.562 MB / 433.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.1208, allocations: 0.6846 MB / 434.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.227e-05/0.1208, allocations: 3.938 kB / 434.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.1209, allocations: 15.44 kB / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1209, allocations: 0 / 434.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.1447, allocations: 1.927 MB / 436.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.06, allocations: 11.73 kB / 436.4 MB, free: 10.9 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.579173708800226] Failed to read output from testmodel.py, exit status != 0: ['time', 'success1', 'success2', 'success3', 'success4'] 8.179409739095718 8.360424176 8.081705739 Calling exit ...