Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.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.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 183.2 kB / 16.71 MB, free: 4.969 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.325/1.325, allocations: 225.7 MB / 243.2 MB, free: 8.523 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.001033/0.001033, allocations: 93.44 kB / 294.4 MB, free: 9.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003448, allocations: 11.94 kB / 354.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2327, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.0005056/0.2333, allocations: 255.7 kB / 404.8 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.235, allocations: 1.891 MB / 406.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.33e-05/0.235, allocations: 0 / 406.7 MB, free: 29.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.2388, allocations: 128.4 kB / 406.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.691e-05/0.2389, allocations: 27.91 kB / 406.9 MB, free: 29.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.239, allocations: 49.56 kB / 406.9 MB, free: 28.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.693e-05/0.2391, allocations: 47.84 kB / 406.9 MB, free: 28.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.84e-05/0.2392, allocations: 9.703 kB / 407 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.472e-05/0.2392, allocations: 23.86 kB / 407 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.428e-05/0.2393, allocations: 31.91 kB / 407 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.2393, allocations: 0 / 407 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.384e-05/0.2394, allocations: 19.98 kB / 407 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.377e-05/0.2395, allocations: 52.39 kB / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.2395, allocations: 46.56 kB / 407.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001021/0.2396, allocations: 55.81 kB / 407.2 MB, free: 28.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2397, allocations: 3.984 kB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2397, allocations: 2.5 kB / 407.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.2397, allocations: 0 / 407.2 MB, free: 28.68 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002923/0.24, allocations: 386.5 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.24, allocations: 8.031 kB / 407.6 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.629e-05/0.24, allocations: 12.83 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/0.2402, allocations: 207.8 kB / 407.8 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.2403, allocations: 384 / 407.8 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.2403, allocations: 4.375 kB / 407.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.842e-05/0.2404, allocations: 70.3 kB / 407.9 MB, free: 27.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.2404, allocations: 4 kB / 407.9 MB, free: 27.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.2404, allocations: 5.266 kB / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.2404, allocations: 3.938 kB / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.362e-05/0.2404, allocations: 0 / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002364/0.2407, allocations: 182.2 kB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.874e-05/0.2407, allocations: 18.64 kB / 408.1 MB, free: 27.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.347e-05/0.2407, allocations: 12.84 kB / 408.1 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.2407, allocations: 0 / 408.1 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.2408, allocations: 64.2 kB / 408.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.2408, allocations: 0 / 408.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001061/0.2409, allocations: 41.64 kB / 408.2 MB, free: 27.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.353e-05/0.2409, allocations: 162.3 kB / 408.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.241, allocations: 169.7 kB / 408.5 MB, free: 27.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.2411, allocations: 25.7 kB / 408.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.637e-05/0.2411, allocations: 92.14 kB / 408.6 MB, free: 27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.2411, allocations: 3.906 kB / 408.6 MB, free: 27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-06/0.2411, allocations: 0 / 408.6 MB, free: 27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.2412, allocations: 322.8 kB / 408.9 MB, free: 26.67 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.778e-06/0.2412, allocations: 0 / 408.9 MB, free: 26.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.187e-05/0.2412, allocations: 48.28 kB / 409 MB, free: 26.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.262e-05/0.2412, allocations: 12.8 kB / 409 MB, free: 26.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2413, allocations: 7.938 kB / 409 MB, free: 26.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.346e-05/0.2413, allocations: 53.53 kB / 409.1 MB, free: 26.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/0.2413, allocations: 4 kB / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.2413, allocations: 3.938 kB / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.679e-06/0.2413, allocations: 0 / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.36e-05/0.2414, allocations: 4.094 kB / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.2414, allocations: 4 kB / 409.1 MB, free: 26.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.156e-05/0.2415, allocations: 4 kB / 409.1 MB, free: 26.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.2415, allocations: 0 / 409.1 MB, free: 26.51 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.767e-05/0.2415, allocations: 133.8 kB / 409.2 MB, free: 26.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.2415, allocations: 11.84 kB / 409.2 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.769e-05/0.2416, allocations: 7.859 kB / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.2416, allocations: 0 / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2416, allocations: 4 kB / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.2416, allocations: 7.938 kB / 409.2 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.2417, allocations: 169.7 kB / 409.4 MB, free: 26.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2417, allocations: 0 / 409.4 MB, free: 26.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.479e-05/0.2418, allocations: 7.938 kB / 409.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.2418, allocations: 0 / 409.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.2418, allocations: 0 / 409.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.2418, allocations: 4 kB / 409.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2418, allocations: 0 / 409.4 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.286e-05/0.2419, allocations: 77.03 kB / 409.5 MB, free: 26.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.816e-05/0.2419, allocations: 93.06 kB / 409.6 MB, free: 25.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.2419, allocations: 48 / 409.6 MB, free: 25.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.442e-05/0.242, allocations: 7.969 kB / 409.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.242, allocations: 4 kB / 409.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.242, allocations: 0 / 409.6 MB, free: 25.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.547e-05/0.2421, allocations: 135.2 kB / 409.7 MB, free: 25.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2421, allocations: 0 / 409.7 MB, free: 25.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001936/0.2423, allocations: 12 kB / 409.7 MB, free: 25.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0002955/0.2426, allocations: 215.3 kB / 410 MB, free: 25.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.577e-05/0.2427, allocations: 12 kB / 410 MB, free: 25.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2427, allocations: 3.938 kB / 410 MB, free: 25.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.707e-06/0.2427, allocations: 7.984 kB / 410 MB, free: 25.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.2429, allocations: 7.938 kB / 410 MB, free: 25.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002561/0.2431, allocations: 268.6 kB / 410.2 MB, free: 25.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.2432, allocations: 0.7082 MB / 411 MB, free: 24.51 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.385e-05/0.2433, allocations: 8 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.993e-05/0.2433, allocations: 19.42 kB / 411 MB, free: 24.48 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2433, allocations: 0 / 411 MB, free: 24.48 MB / 298.7 MB Notification: Performance of Templates: time 0.003059/0.2464, allocations: 1.184 MB / 412.2 MB, free: 23.31 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/ReadRealMatrixFromFile/ReadRealMatrixFromFile.csv","../files/Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches