Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009362/0.0009362, allocations: 179.1 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 225.7 MB / 243.2 MB, free: 10.23 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007396/0.0007394, allocations: 102.2 kB / 294.4 MB, free: 9.746 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002263, allocations: 8 kB / 354.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.191, allocations: 50.41 MB / 404.6 MB, free: 31.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0004593/0.1915, allocations: 215.8 kB / 404.8 MB, free: 31.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002328/0.1917, allocations: 139.3 kB / 404.9 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.1917, allocations: 0 / 404.9 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.656e-05/0.1918, allocations: 0 / 404.9 MB, free: 31.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.856e-05/0.1919, allocations: 15.97 kB / 404.9 MB, free: 31.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001235/0.192, allocations: 15.98 kB / 404.9 MB, free: 30.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.259e-05/0.192, allocations: 19.92 kB / 405 MB, free: 30.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.177e-05/0.1921, allocations: 0.625 kB / 405 MB, free: 30.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.564e-05/0.1921, allocations: 19.97 kB / 405 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.698e-05/0.1922, allocations: 20.83 kB / 405 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.15e-05/0.1922, allocations: 4 kB / 405 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.211e-05/0.1922, allocations: 7.219 kB / 405 MB, free: 30.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.594e-05/0.1923, allocations: 7.984 kB / 405 MB, free: 30.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.334e-05/0.1923, allocations: 37.64 kB / 405.1 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.446e-05/0.1924, allocations: 23.91 kB / 405.1 MB, free: 30.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1924, allocations: 4 kB / 405.1 MB, free: 30.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1924, allocations: 0 / 405.1 MB, free: 30.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1924, allocations: 0 / 405.1 MB, free: 30.85 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.0002232/0.1927, allocations: 355.1 kB / 405.4 MB, free: 30.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.1927, allocations: 8.031 kB / 405.4 MB, free: 30.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.73e-05/0.1927, allocations: 0.9375 kB / 405.4 MB, free: 30.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.803e-05/0.1928, allocations: 169.8 kB / 405.6 MB, free: 30.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.1928, allocations: 4.375 kB / 405.6 MB, free: 30.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.1928, allocations: 8.375 kB / 405.6 MB, free: 30.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.119e-05/0.1929, allocations: 62.17 kB / 405.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.1929, allocations: 192 / 405.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.193, allocations: 3.938 kB / 405.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.193, allocations: 3.984 kB / 405.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.139e-05/0.193, allocations: 35.92 kB / 405.7 MB, free: 30.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.863e-05/0.1931, allocations: 157.6 kB / 405.9 MB, free: 29.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.299e-05/0.1932, allocations: 42.61 kB / 405.9 MB, free: 29.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.068e-05/0.1932, allocations: 43.86 kB / 406 MB, free: 29.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.878e-06/0.1932, allocations: 0 / 406 MB, free: 29.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.1933, allocations: 64.2 kB / 406 MB, free: 29.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.1933, allocations: 0 / 406 MB, free: 29.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002145/0.1935, allocations: 183.3 kB / 406.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.1935, allocations: 77.11 kB / 406.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.614e-05/0.1936, allocations: 113.8 kB / 406.4 MB, free: 29.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.374e-06/0.1936, allocations: 33.64 kB / 406.4 MB, free: 29.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.12e-05/0.1936, allocations: 96.14 kB / 406.5 MB, free: 29.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.1936, allocations: 4 kB / 406.5 MB, free: 29.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-06/0.1937, allocations: 0 / 406.5 MB, free: 29.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.887e-05/0.1937, allocations: 314.8 kB / 406.8 MB, free: 28.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.1937, allocations: 27.98 kB / 406.8 MB, free: 28.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.902e-05/0.1938, allocations: 23.98 kB / 406.9 MB, free: 28.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.031e-05/0.1938, allocations: 120.2 kB / 407 MB, free: 28.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.1938, allocations: 0 / 407 MB, free: 28.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001072/0.1939, allocations: 159.3 kB / 407.1 MB, free: 28.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.194, allocations: 33.7 kB / 407.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.194, allocations: 3.938 kB / 407.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.194, allocations: 0 / 407.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.342e-06/0.194, allocations: 3.984 kB / 407.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.718e-06/0.194, allocations: 0 / 407.2 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.194, allocations: 4 kB / 407.2 MB, free: 28.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.1941, allocations: 0 / 407.2 MB, free: 28.47 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: 4 (success1,success2,success3,success4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 5.35e-05/0.1941, allocations: 154.1 kB / 407.3 MB, free: 28.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.1941, allocations: 4 kB / 407.3 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.188e-05/0.1942, allocations: 15.88 kB / 407.4 MB, free: 28.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1942, allocations: 0 / 407.4 MB, free: 28.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1942, allocations: 0 / 407.4 MB, free: 28.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1942, allocations: 0 / 407.4 MB, free: 28.28 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.76e-05/0.1942, allocations: 161.6 kB / 407.5 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1942, allocations: 3.938 kB / 407.5 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.054e-06/0.1942, allocations: 3.984 kB / 407.5 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.1943, allocations: 3.938 kB / 407.5 MB, free: 28.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.1943, allocations: 7.938 kB / 407.5 MB, free: 28.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1943, allocations: 0 / 407.5 MB, free: 28.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1943, allocations: 4.25 kB / 407.5 MB, free: 28.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.1944, allocations: 186.8 kB / 407.7 MB, free: 27.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.546e-05/0.1944, allocations: 81.09 kB / 407.8 MB, free: 27.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.1945, allocations: 12.12 kB / 407.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.176e-05/0.1945, allocations: 0 / 407.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.228e-05/0.1945, allocations: 3.984 kB / 407.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.1945, allocations: 4 kB / 407.8 MB, free: 27.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.527e-05/0.1945, allocations: 91.27 kB / 407.9 MB, free: 27.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1945, allocations: 4.031 kB / 407.9 MB, free: 27.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001816/0.1947, allocations: 8 kB / 407.9 MB, free: 27.62 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: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0002153/0.195, allocations: 137.6 kB / 408.1 MB, free: 27.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001106/0.1951, allocations: 135.3 kB / 408.2 MB, free: 27.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1951, allocations: 4.062 kB / 408.2 MB, free: 27.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.438e-05/0.1951, allocations: 99.33 kB / 408.3 MB, free: 27.24 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.1953, allocations: 0 / 408.3 MB, free: 27.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001937/0.1955, allocations: 142.6 kB / 408.4 MB, free: 27.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.864e-05/0.1956, allocations: 0.6809 MB / 409.1 MB, free: 26.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.619e-06/0.1956, allocations: 0 / 409.1 MB, free: 26.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.494e-06/0.1956, allocations: 7.438 kB / 409.1 MB, free: 26.36 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1956, allocations: 4.062 kB / 409.1 MB, free: 26.35 MB / 298.7 MB Notification: Performance of Templates: time 0.002151/0.1978, allocations: 0.641 MB / 409.8 MB, free: 25.72 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches