Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 197.4 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007408/0.0007408, allocations: 94.03 kB / 296.7 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002812, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1888, allocations: 51.28 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004493/0.1893, allocations: 209.7 kB / 408.3 MB, free: 27.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001872/0.1895, allocations: 63.75 kB / 408.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.373e-05/0.1895, allocations: 0 / 408.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.256e-05/0.1896, allocations: 0 / 408.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.6e-05/0.1896, allocations: 13.14 kB / 408.4 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001166/0.1898, allocations: 15.98 kB / 408.4 MB, free: 27.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.789e-05/0.1898, allocations: 15.97 kB / 408.4 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.479e-05/0.1898, allocations: 4.547 kB / 408.4 MB, free: 27.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.093e-05/0.1899, allocations: 11.94 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.496e-05/0.1899, allocations: 25.72 kB / 408.5 MB, free: 27.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.19, allocations: 0 / 408.5 MB, free: 27.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.206e-05/0.19, allocations: 4 kB / 408.5 MB, free: 27.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.731e-05/0.19, allocations: 11.92 kB / 408.5 MB, free: 27.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.261e-05/0.1901, allocations: 34.39 kB / 408.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.97e-05/0.1901, allocations: 19.98 kB / 408.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1901, allocations: 0.7812 kB / 408.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1901, allocations: 4 kB / 408.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.1902, allocations: 2 kB / 408.5 MB, free: 27.29 MB / 298.7 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.0002054/0.1904, allocations: 345.2 kB / 408.9 MB, free: 26.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.1904, allocations: 12.03 kB / 408.9 MB, free: 26.88 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.1905, allocations: 43.91 kB / 408.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.159e-05/0.1905, allocations: 5.938 kB / 408.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.413e-05/0.1906, allocations: 172.2 kB / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1906, allocations: 384 / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.1906, allocations: 7.344 kB / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.1907, allocations: 78.16 kB / 409.2 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1907, allocations: 3.938 kB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.704e-06/0.1907, allocations: 3.938 kB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1907, allocations: 4 kB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.593e-05/0.1908, allocations: 27.98 kB / 409.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.1909, allocations: 246.6 kB / 409.5 MB, free: 26.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.927e-05/0.191, allocations: 74.42 kB / 409.5 MB, free: 26.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.601e-05/0.1911, allocations: 52.25 kB / 409.6 MB, free: 26.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.1911, allocations: 0 / 409.6 MB, free: 26.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.1911, allocations: 68.25 kB / 409.7 MB, free: 25.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.1911, allocations: 0 / 409.7 MB, free: 25.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002393/0.1914, allocations: 203.2 kB / 409.9 MB, free: 25.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.35e-05/0.1914, allocations: 85.11 kB / 409.9 MB, free: 25.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.892e-05/0.1915, allocations: 113.8 kB / 410.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.963e-06/0.1915, allocations: 25.7 kB / 410.1 MB, free: 25.53 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.675e-05/0.1915, allocations: 80.14 kB / 410.2 MB, free: 25.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.1915, allocations: 38.7 kB / 410.2 MB, free: 25.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.1915, allocations: 3.938 kB / 410.2 MB, free: 25.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.506e-05/0.1916, allocations: 318.8 kB / 410.5 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.798e-05/0.1916, allocations: 27.98 kB / 410.5 MB, free: 25.06 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.724e-05/0.1916, allocations: 31.98 kB / 410.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.51e-05/0.1917, allocations: 136.2 kB / 410.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1917, allocations: 0 / 410.7 MB, free: 24.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001242/0.1919, allocations: 175.2 kB / 410.9 MB, free: 24.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1919, allocations: 33.7 kB / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.1919, allocations: 0 / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.1919, allocations: 0 / 410.9 MB, free: 24.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.594e-05/0.1919, allocations: 7.938 kB / 410.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.309e-06/0.1919, allocations: 0 / 410.9 MB, free: 24.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.775e-05/0.192, allocations: 4 kB / 410.9 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.192, allocations: 0 / 410.9 MB, free: 24.64 MB / 298.7 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 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.74e-05/0.192, allocations: 164.2 kB / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.1921, allocations: 3.906 kB / 411.1 MB, free: 24.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.504e-05/0.1921, allocations: 8.375 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.1921, allocations: 3.984 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.1921, allocations: 0 / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1921, allocations: 3.984 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.1923, allocations: 436.2 kB / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1924, allocations: 0 / 411.5 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-06/0.1924, allocations: 7.984 kB / 411.5 MB, free: 23.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1924, allocations: 0 / 411.5 MB, free: 23.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.1924, allocations: 8 kB / 411.5 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1924, allocations: 320 / 411.5 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1924, allocations: 0 / 411.5 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/0.1926, allocations: 289 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.598e-05/0.1926, allocations: 85.05 kB / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.1926, allocations: 0 / 411.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.034e-05/0.1926, allocations: 8 kB / 411.9 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.857e-05/0.1927, allocations: 7.938 kB / 411.9 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.1927, allocations: 8.547 kB / 411.9 MB, free: 23.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.176e-05/0.1927, allocations: 91.28 kB / 412 MB, free: 23.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1927, allocations: 0 / 412 MB, free: 23.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002023/0.1929, allocations: 12 kB / 412 MB, free: 23.41 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005234/0.1935, allocations: 0.9047 MB / 412.9 MB, free: 22.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001267/0.1936, allocations: 147.3 kB / 413.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1936, allocations: 3.938 kB / 413.1 MB, free: 22.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.927e-05/0.1937, allocations: 103.4 kB / 413.2 MB, free: 22.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.1939, allocations: 10.41 kB / 413.2 MB, free: 22.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005612/0.1944, allocations: 0.5997 MB / 413.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.93e-05/0.1945, allocations: 0.6848 MB / 414.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.233e-05/0.1946, allocations: 19.42 kB / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1946, allocations: 0 / 414.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.792/2.986, allocations: 0.9922 MB / 415.5 MB, free: 19.84 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu > Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches