Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009047/0.0009047, allocations: 96.92 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 202.5 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002012, allocations: 4 kB / 307.8 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.08933, allocations: 51.52 MB / 359.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004982/0.08986, allocations: 214 kB / 359.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002452/0.09013, allocations: 55.86 kB / 359.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.566e-05/0.09016, allocations: 4 kB / 359.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.51e-05/0.09019, allocations: 4 kB / 359.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.009e-05/0.09026, allocations: 11.92 kB / 359.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001228/0.09039, allocations: 19.97 kB / 359.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.093e-05/0.09045, allocations: 15.98 kB / 359.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.001e-05/0.09049, allocations: 8 kB / 359.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.728e-05/0.09053, allocations: 11.97 kB / 359.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.135e-05/0.09059, allocations: 23.92 kB / 359.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.09061, allocations: 0 / 359.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.513e-05/0.09066, allocations: 4 kB / 359.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.603e-05/0.0907, allocations: 8 kB / 359.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.043e-05/0.09074, allocations: 41.62 kB / 359.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.033e-05/0.09083, allocations: 27.91 kB / 359.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09084, allocations: 0 / 359.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09085, allocations: 0 / 359.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.09086, allocations: 0 / 359.8 MB, free: 12.77 MB / 302.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.0002742/0.09113, allocations: 353.5 kB / 360.1 MB, free: 12.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.09118, allocations: 8.031 kB / 360.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.499e-05/0.09124, allocations: 42.59 kB / 360.2 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.879e-05/0.09127, allocations: 20.77 kB / 360.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.602e-05/0.09137, allocations: 168.4 kB / 360.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.09139, allocations: 4.375 kB / 360.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.09141, allocations: 384 / 360.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.09153, allocations: 74.17 kB / 360.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.09154, allocations: 3.938 kB / 360.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.09156, allocations: 0 / 360.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.09157, allocations: 4 kB / 360.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.552e-05/0.09162, allocations: 35.98 kB / 360.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002254/0.09185, allocations: 252.9 kB / 360.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.174e-05/0.09194, allocations: 66.5 kB / 360.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.611e-05/0.092, allocations: 52.89 kB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.536e-06/0.09202, allocations: 0 / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.09207, allocations: 64.27 kB / 360.9 MB, free: 11.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.09207, allocations: 3.938 kB / 360.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002962/0.09238, allocations: 207.2 kB / 361.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.09243, allocations: 89.09 kB / 361.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.956e-05/0.09253, allocations: 113.8 kB / 361.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.09255, allocations: 29.7 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.192e-05/0.09259, allocations: 80.14 kB / 361.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.09262, allocations: 23.66 kB / 361.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.09265, allocations: 13.72 kB / 361.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.09275, allocations: 326.8 kB / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.585e-05/0.09279, allocations: 27.98 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.315e-05/0.09283, allocations: 35.98 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.09295, allocations: 140.3 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.09296, allocations: 0 / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001609/0.09312, allocations: 171.2 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.09316, allocations: 37.69 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.09317, allocations: 0 / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.09319, allocations: 4 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.555e-05/0.09321, allocations: 0 / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.09322, allocations: 0 / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.53e-05/0.09325, allocations: 3.906 kB / 362.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.09326, allocations: 8 kB / 362.2 MB, free: 10.07 MB / 302.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 9.215e-05/0.09336, allocations: 156.5 kB / 362.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.09339, allocations: 7.938 kB / 362.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.09341, allocations: 8.375 kB / 362.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.09342, allocations: 0 / 362.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.09343, allocations: 0 / 362.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.09343, allocations: 0 / 362.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003532/0.09379, allocations: 448 kB / 362.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.0938, allocations: 0 / 362.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.988e-06/0.09382, allocations: 7.938 kB / 362.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.09382, allocations: 0 / 362.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.09384, allocations: 4 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.09385, allocations: 3.984 kB / 362.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.09385, allocations: 0 / 362.8 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002106/0.09407, allocations: 277.7 kB / 363.1 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.09411, allocations: 93 kB / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.09413, allocations: 0 / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.449e-05/0.09418, allocations: 8.062 kB / 363.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.559e-05/0.0942, allocations: 4 kB / 363.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.09421, allocations: 4 kB / 363.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.372e-05/0.09426, allocations: 91.27 kB / 363.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09426, allocations: 0 / 363.3 MB, free: 8.863 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.09448, allocations: 16 kB / 363.3 MB, free: 8.848 MB / 302.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.0007354/0.09522, allocations: 0.9136 MB / 364.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000164/0.0954, allocations: 139.4 kB / 364.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.09541, allocations: 3.938 kB / 364.3 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.679e-05/0.0955, allocations: 107.3 kB / 364.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001962/0.0957, allocations: 12 kB / 364.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.09695, allocations: 1.548 MB / 366 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.09719, allocations: 0.6848 MB / 366.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.518e-05/0.09722, allocations: 7.891 kB / 366.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.194e-05/0.09724, allocations: 11.44 kB / 366.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09725, allocations: 0 / 366.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01065/0.1079, allocations: 1.588 MB / 368.3 MB, free: 3.797 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/0.1081, allocations: 242.7 kB / 368.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/1.76, allocations: 0 / 368.5 MB, free: 3.543 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches