Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001498/0.001499, allocations: 197.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 225.6 MB / 234.8 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009429/0.0009429, allocations: 92.83 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1996/0.1996, allocations: 45.15 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.668e-05/1.671e-05, allocations: 4 kB / 453.2 MB, free: 75.85 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 63.25 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/0.5125, allocations: 85.99 MB / 0.5883 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000189/0.5127, allocations: 62.34 kB / 0.5884 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003633/0.5164, allocations: 1.623 MB / 0.59 GB, free: 15.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.5164, allocations: 0 / 0.59 GB, free: 15.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.5164, allocations: 0.8438 kB / 0.59 GB, free: 15.32 MB / 394.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.0002823/0.5167, allocations: 348.3 kB / 0.5903 GB, free: 14.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.5167, allocations: 8.031 kB / 0.5903 GB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.5168, allocations: 3.984 kB / 0.5903 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.5169, allocations: 167 kB / 0.5905 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.5169, allocations: 0 / 0.5905 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.5169, allocations: 0 / 0.5905 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.74e-05/0.517, allocations: 0 / 0.5905 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.194e-05/0.517, allocations: 36.7 kB / 0.5905 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.5171, allocations: 3.938 kB / 0.5905 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.5171, allocations: 0 / 0.5905 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.5171, allocations: 4 kB / 0.5905 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.5172, allocations: 130.2 kB / 0.5906 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.642e-05/0.5173, allocations: 18.61 kB / 0.5907 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.232e-05/0.5173, allocations: 8.797 kB / 0.5907 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.613e-06/0.5173, allocations: 0 / 0.5907 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.5173, allocations: 60.2 kB / 0.5907 GB, free: 14.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.5173, allocations: 0 / 0.5907 GB, free: 14.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001599/0.5175, allocations: 45.69 kB / 0.5908 GB, free: 14.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/0.5176, allocations: 77.11 kB / 0.5908 GB, free: 14.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.931e-05/0.5176, allocations: 89 kB / 0.5909 GB, free: 14.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.5177, allocations: 25.7 kB / 0.591 GB, free: 14.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.5177, allocations: 80.14 kB / 0.591 GB, free: 14.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.5177, allocations: 3.938 kB / 0.591 GB, free: 14.04 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-06/0.5177, allocations: 0 / 0.591 GB, free: 14.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.5178, allocations: 315 kB / 0.5913 GB, free: 13.72 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.913e-06/0.5179, allocations: 0 / 0.5913 GB, free: 13.72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.516e-06/0.5179, allocations: 4 kB / 0.5913 GB, free: 13.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.549e-05/0.5179, allocations: 0 / 0.5913 GB, free: 13.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.5179, allocations: 0 / 0.5913 GB, free: 13.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.767e-05/0.518, allocations: 41.64 kB / 0.5914 GB, free: 13.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.518, allocations: 29.7 kB / 0.5914 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.518, allocations: 4 kB / 0.5914 GB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.518, allocations: 7.922 kB / 0.5914 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.5181, allocations: 4.094 kB / 0.5914 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.5181, allocations: 0 / 0.5914 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.153e-05/0.5181, allocations: 0 / 0.5914 GB, free: 13.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.5181, allocations: 0 / 0.5914 GB, free: 13.62 MB / 394.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: 1 (result) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.398e-05/0.5182, allocations: 134.7 kB / 0.5916 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-06/0.5182, allocations: 3.953 kB / 0.5916 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.478e-05/0.5182, allocations: 12.2 kB / 0.5916 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.5182, allocations: 0 / 0.5916 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.5182, allocations: 0 / 0.5916 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.5182, allocations: 0 / 0.5916 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.192e-05/0.5183, allocations: 134.2 kB / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.5183, allocations: 0 / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.793e-06/0.5183, allocations: 4 kB / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.5183, allocations: 0 / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.5184, allocations: 0 / 0.5917 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.292e-06/0.5184, allocations: 7.953 kB / 0.5917 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5184, allocations: 3.938 kB / 0.5917 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.993e-05/0.5185, allocations: 68.12 kB / 0.5918 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.5185, allocations: 77.11 kB / 0.5919 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.5185, allocations: 4 kB / 0.5919 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-06/0.5186, allocations: 3.938 kB / 0.5919 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.763e-05/0.5186, allocations: 3.953 kB / 0.5919 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.5186, allocations: 0 / 0.5919 GB, free: 13.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.238e-05/0.5186, allocations: 79.28 kB / 0.5919 GB, free: 13.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5186, allocations: 0 / 0.5919 GB, free: 13.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002198/0.5189, allocations: 20 kB / 0.592 GB, free: 13 MB / 394.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: 1 (result) * Number of discrete states: 1 (result) * 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 (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.0003846/0.5192, allocations: 193 kB / 0.5921 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.764e-05/0.5193, allocations: 55.41 kB / 0.5922 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5193, allocations: 0 / 0.5922 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.833e-05/0.5194, allocations: 55.41 kB / 0.5922 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.415e-05/0.5195, allocations: 0 / 0.5922 GB, free: 12.69 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000154/0.5196, allocations: 47.81 kB / 0.5923 GB, free: 12.62 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.5199, allocations: 0.6788 MB / 0.593 GB, free: 11.92 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.28e-06/0.5199, allocations: 4.125 kB / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.636e-06/0.5199, allocations: 7.438 kB / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5199, allocations: 0 / 0.593 GB, free: 11.91 MB / 394.7 MB Notification: Performance of Templates: time 0.002424/0.5223, allocations: 0.595 MB / 0.5935 GB, free: 11.32 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches