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/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) 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 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: 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/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.694/1.694, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2176/0.2176, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 79.88 kB / 481.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3316, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001416/0.333, allocations: 491.7 kB / 0.5314 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.3341, allocations: 0.7778 MB / 0.5322 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.018e-05/0.3341, allocations: 0 / 0.5322 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.3341, allocations: 3.938 kB / 0.5322 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.3343, allocations: 13.95 kB / 0.5322 GB, free: 12.64 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.3348, allocations: 52.88 kB / 0.5323 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.178e-05/0.3349, allocations: 5.406 kB / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.529e-05/0.3349, allocations: 1.469 kB / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.746e-05/0.335, allocations: 1.406 kB / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.214e-05/0.335, allocations: 6.266 kB / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-06/0.335, allocations: 1.438 kB / 0.5323 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.3352, allocations: 61.72 kB / 0.5323 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.582e-06/0.3352, allocations: 0 / 0.5323 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.3352, allocations: 0 / 0.5323 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.3354, allocations: 58.89 kB / 0.5324 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3354, allocations: 0 / 0.5324 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3354, allocations: 0 / 0.5324 GB, free: 12.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.3354, allocations: 1.344 kB / 0.5324 GB, free: 12.53 MB / 398.1 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.0003293/0.3357, allocations: 357.4 kB / 0.5327 GB, free: 12.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.118e-05/0.3358, allocations: 8.562 kB / 0.5327 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.901e-05/0.3358, allocations: 6.203 kB / 0.5327 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.3359, allocations: 161.9 kB / 0.5329 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.3359, allocations: 384 / 0.5329 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.3359, allocations: 5.562 kB / 0.5329 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.949e-05/0.336, allocations: 32.88 kB / 0.5329 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.336, allocations: 192 / 0.5329 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.3361, allocations: 3.938 kB / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3361, allocations: 0 / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.73e-05/0.3361, allocations: 1.531 kB / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001159/0.3362, allocations: 151.1 kB / 0.5331 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.497e-05/0.3362, allocations: 21.47 kB / 0.5331 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.603e-05/0.3363, allocations: 10.3 kB / 0.5331 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.531e-06/0.3363, allocations: 3.938 kB / 0.5331 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.3363, allocations: 57.86 kB / 0.5332 GB, free: 11.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3363, allocations: 0 / 0.5332 GB, free: 11.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001521/0.3365, allocations: 72.38 kB / 0.5332 GB, free: 11.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.3365, allocations: 81.09 kB / 0.5333 GB, free: 11.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.3366, allocations: 91.73 kB / 0.5334 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.3366, allocations: 29.73 kB / 0.5334 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.3367, allocations: 85.97 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.3367, allocations: 0 / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.3367, allocations: 11.72 kB / 0.5335 GB, free: 11.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3369, allocations: 316.6 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.139e-05/0.3369, allocations: 4 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.3369, allocations: 1.781 kB / 0.5338 GB, free: 10.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.618e-05/0.3369, allocations: 67.88 kB / 0.5339 GB, free: 10.78 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3369, allocations: 0 / 0.5339 GB, free: 10.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.447e-05/0.337, allocations: 62.56 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.3371, allocations: 41.39 kB / 0.534 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.3371, allocations: 3.938 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.3371, allocations: 1.75 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.235e-06/0.3371, allocations: 3.984 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.3371, allocations: 0 / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.431e-05/0.3371, allocations: 1.781 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.3371, allocations: 0 / 0.534 GB, free: 10.67 MB / 398.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: 1 (result) * 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 7.84e-05/0.3372, allocations: 141.3 kB / 0.5342 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-06/0.3372, allocations: 1.844 kB / 0.5342 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.767e-06/0.3372, allocations: 7.062 kB / 0.5342 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3372, allocations: 1.75 kB / 0.5342 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3372, allocations: 0 / 0.5342 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-06/0.3372, allocations: 0 / 0.5342 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.535e-05/0.3373, allocations: 147.5 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3373, allocations: 0 / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3373, allocations: 0 / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.3374, allocations: 5.781 kB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.3374, allocations: 3.938 kB / 0.5343 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3374, allocations: 0 / 0.5343 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3374, allocations: 1.812 kB / 0.5343 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.714e-05/0.3375, allocations: 97.73 kB / 0.5344 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.966e-05/0.3375, allocations: 85.06 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.3375, allocations: 6.219 kB / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.3376, allocations: 0 / 0.5345 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.054e-05/0.3376, allocations: 6.219 kB / 0.5345 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.3376, allocations: 3.984 kB / 0.5345 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.599e-05/0.3376, allocations: 75.28 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3376, allocations: 1.719 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.3378, allocations: 17.25 kB / 0.5346 GB, free: 10.01 MB / 398.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: 1 (result) * Number of discrete states: 1 (result) * 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.0003615/0.3382, allocations: 187.2 kB / 0.5348 GB, free: 9.879 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.573e-05/0.3383, allocations: 64.89 kB / 0.5348 GB, free: 9.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3383, allocations: 0 / 0.5348 GB, free: 9.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.008e-05/0.3383, allocations: 63.53 kB / 0.5349 GB, free: 9.738 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.3385, allocations: 5.312 kB / 0.5349 GB, free: 9.734 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001524/0.3386, allocations: 85.28 kB / 0.535 GB, free: 9.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.3389, allocations: 0.6703 MB / 0.5356 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.39e-06/0.3389, allocations: 0 / 0.5356 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.004e-05/0.3389, allocations: 8.812 kB / 0.5356 GB, free: 8.93 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3389, allocations: 0 / 0.5356 GB, free: 8.93 MB / 398.1 MB Notification: Performance of Templates: time 0.002616/0.3415, allocations: 0.6396 MB / 0.5363 GB, free: 8.59 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches