Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.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.001304/0.001304, allocations: 108.8 kB / 19.16 MB, free: 3.871 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.001526/0.001526, allocations: 205.6 kB / 22.12 MB, free: 0.9297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 207.6 MB / 232.5 MB, free: 3.758 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.00171/0.00171, allocations: 55.91 kB / 343 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1025, allocations: 49.13 MB / 392.1 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001687/0.1042, allocations: 495.9 kB / 392.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002717/0.1044, allocations: 62.64 kB / 392.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.155e-05/0.1045, allocations: 0 / 392.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.354e-05/0.1045, allocations: 0 / 392.6 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.922e-05/0.1046, allocations: 11.98 kB / 392.6 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.1047, allocations: 31.91 kB / 392.7 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.819e-05/0.1048, allocations: 19.97 kB / 392.7 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.951e-05/0.1049, allocations: 0 / 392.7 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.343e-05/0.1049, allocations: 23.92 kB / 392.7 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.877e-05/0.105, allocations: 23.97 kB / 392.7 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.58e-05/0.105, allocations: 0 / 392.7 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.894e-05/0.1051, allocations: 11.98 kB / 392.8 MB, free: 8.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.298e-05/0.1051, allocations: 3.938 kB / 392.8 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.1051, allocations: 11.94 kB / 392.8 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.1053, allocations: 28.12 kB / 392.8 MB, free: 8.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1053, allocations: 0 / 392.8 MB, free: 8.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1053, allocations: 4 kB / 392.8 MB, free: 8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.1053, allocations: 3.938 kB / 392.8 MB, free: 7.996 MB / 318.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.0004274/0.1057, allocations: 365.1 kB / 393.2 MB, free: 7.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1057, allocations: 8.031 kB / 393.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.318e-05/0.1057, allocations: 192 / 393.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.644e-05/0.1058, allocations: 46.69 kB / 393.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.1058, allocations: 8.828 kB / 393.2 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.106, allocations: 168.3 kB / 393.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.106, allocations: 384 / 393.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-06/0.106, allocations: 4.375 kB / 393.4 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000152/0.1062, allocations: 73.98 kB / 393.5 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.1062, allocations: 4 kB / 393.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1062, allocations: 0 / 393.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1062, allocations: 0 / 393.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.058e-05/0.1062, allocations: 31.98 kB / 393.5 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002757/0.1065, allocations: 252.8 kB / 393.7 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.1066, allocations: 66.48 kB / 393.8 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.352e-05/0.1067, allocations: 44.91 kB / 393.9 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.1067, allocations: 8 kB / 393.9 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.1067, allocations: 60.25 kB / 393.9 MB, free: 6.691 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.1067, allocations: 3.938 kB / 393.9 MB, free: 6.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003482/0.1071, allocations: 207.5 kB / 394.1 MB, free: 6.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.1071, allocations: 77.11 kB / 394.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1073, allocations: 113.8 kB / 394.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.1073, allocations: 29.7 kB / 394.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.1073, allocations: 80.14 kB / 394.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.1074, allocations: 31.78 kB / 394.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-05/0.1074, allocations: 21.72 kB / 394.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1075, allocations: 318.8 kB / 394.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.256e-05/0.1076, allocations: 32.23 kB / 394.8 MB, free: 5.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.148e-05/0.1076, allocations: 36.28 kB / 394.9 MB, free: 5.695 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001373/0.1077, allocations: 140.2 kB / 395 MB, free: 5.543 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1078, allocations: 3.938 kB / 395 MB, free: 5.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002113/0.108, allocations: 167.3 kB / 395.2 MB, free: 5.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.108, allocations: 33.7 kB / 395.2 MB, free: 5.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.108, allocations: 4 kB / 395.2 MB, free: 5.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.108, allocations: 3.984 kB / 395.2 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.818e-05/0.108, allocations: 4 kB / 395.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.108, allocations: 0 / 395.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.1081, allocations: 0 / 395.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.164e-05/0.1081, allocations: 8 kB / 395.2 MB, free: 5.305 MB / 318.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.0001217/0.1082, allocations: 151.9 kB / 395.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.1082, allocations: 11.89 kB / 395.4 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.176e-05/0.1082, allocations: 16.3 kB / 395.4 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1082, allocations: 8 kB / 395.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1082, allocations: 0 / 395.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.1083, allocations: 0 / 395.4 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.1087, allocations: 428.2 kB / 395.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1087, allocations: 4 kB / 395.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.205e-06/0.1087, allocations: 7.875 kB / 395.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.1087, allocations: 0 / 395.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1087, allocations: 8 kB / 395.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1087, allocations: 0 / 395.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1087, allocations: 0 / 395.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.109, allocations: 293.1 kB / 396.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.109, allocations: 85.05 kB / 396.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.109, allocations: 0 / 396.2 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.922e-05/0.1091, allocations: 11.98 kB / 396.2 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.991e-05/0.1091, allocations: 0 / 396.2 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.368e-06/0.1091, allocations: 4 kB / 396.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.648e-05/0.1092, allocations: 91.45 kB / 396.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1092, allocations: 4 kB / 396.3 MB, free: 4.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002227/0.1094, allocations: 15.94 kB / 396.3 MB, free: 4.07 MB / 318.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.0008873/0.1103, allocations: 0.9015 MB / 397.2 MB, free: 3.137 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002314/0.1105, allocations: 143.3 kB / 397.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1105, allocations: 0 / 397.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.757e-05/0.1106, allocations: 95.33 kB / 397.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.1108, allocations: 7.938 kB / 397.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.1124, allocations: 1.57 MB / 399 MB, free: 1.215 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.1127, allocations: 0.6846 MB / 399.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.512e-05/0.1127, allocations: 4 kB / 399.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.1128, allocations: 11.44 kB / 399.7 MB, free: 500 kB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1128, allocations: 0 / 399.7 MB, free: 500 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01781/0.1306, allocations: 1.963 MB / 401.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.722/7.852, allocations: 11.86 kB / 401.7 MB, free: 14.46 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --stepSize=1.9992e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.330249692022335]