Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001114, allocations: 192.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007784/0.0007781, allocations: 88.95 kB / 299.8 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3179/0.3179, allocations: 45 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 8 kB / 470.8 MB, free: 7.125 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3207, allocations: 63.11 MB / 0.5214 GB, free: 38.33 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006239/0.3214, allocations: 212 kB / 0.5216 GB, free: 38.19 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009585/0.3224, allocations: 0.9725 MB / 0.5225 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.769e-05/0.3224, allocations: 0 / 0.5225 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.316e-05/0.3224, allocations: 0 / 0.5225 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.3226, allocations: 14.33 kB / 0.5225 GB, free: 37.38 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0006165/0.3232, allocations: 47.38 kB / 0.5226 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.123e-05/0.3233, allocations: 2.531 kB / 0.5226 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.296e-05/0.3233, allocations: 7.938 kB / 0.5226 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.904e-05/0.3233, allocations: 6.5 kB / 0.5226 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.622e-05/0.3234, allocations: 2.375 kB / 0.5226 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.3234, allocations: 0 / 0.5226 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.861e-05/0.3235, allocations: 47.59 kB / 0.5226 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.827e-06/0.3235, allocations: 0 / 0.5226 GB, free: 37.33 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.491e-05/0.3236, allocations: 32.5 kB / 0.5227 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.3237, allocations: 50.17 kB / 0.5227 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3237, allocations: 0 / 0.5227 GB, free: 37.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3237, allocations: 0 / 0.5227 GB, free: 37.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.3237, allocations: 2.812 kB / 0.5227 GB, free: 37.27 MB / 378.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.0002951/0.324, allocations: 353.7 kB / 0.5231 GB, free: 36.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.3241, allocations: 8.594 kB / 0.5231 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.984e-05/0.3241, allocations: 0.9375 kB / 0.5231 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.864e-05/0.3242, allocations: 175 kB / 0.5232 GB, free: 36.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3243, allocations: 384 / 0.5232 GB, free: 36.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.044e-06/0.3243, allocations: 384 / 0.5232 GB, free: 36.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.476e-05/0.3244, allocations: 32.05 kB / 0.5233 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.3244, allocations: 192 / 0.5233 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-06/0.3244, allocations: 3.938 kB / 0.5233 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3244, allocations: 6.344 kB / 0.5233 GB, free: 36.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.402e-05/0.3244, allocations: 0 / 0.5233 GB, free: 36.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.762e-05/0.3245, allocations: 144.4 kB / 0.5234 GB, free: 36.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.04e-05/0.3246, allocations: 28.58 kB / 0.5234 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.269e-05/0.3246, allocations: 4.859 kB / 0.5234 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.3246, allocations: 0 / 0.5234 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.3246, allocations: 58.64 kB / 0.5235 GB, free: 36.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3246, allocations: 4 kB / 0.5235 GB, free: 36.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001509/0.3248, allocations: 67.03 kB / 0.5236 GB, free: 36.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.3248, allocations: 77.11 kB / 0.5236 GB, free: 36.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.166e-05/0.3249, allocations: 96.14 kB / 0.5237 GB, free: 36.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-06/0.3249, allocations: 25.7 kB / 0.5238 GB, free: 36.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.473e-05/0.3249, allocations: 84.08 kB / 0.5238 GB, free: 35.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.3249, allocations: 3.938 kB / 0.5238 GB, free: 35.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.3249, allocations: 2.719 kB / 0.5238 GB, free: 35.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.96e-05/0.325, allocations: 318.3 kB / 0.5242 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.605e-06/0.325, allocations: 0 / 0.5242 GB, free: 35.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.791e-06/0.325, allocations: 2.438 kB / 0.5242 GB, free: 35.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.206e-05/0.3251, allocations: 62.86 kB / 0.5242 GB, free: 35.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3251, allocations: 0 / 0.5242 GB, free: 35.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.372e-05/0.3251, allocations: 62.67 kB / 0.5243 GB, free: 35.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.3252, allocations: 31.7 kB / 0.5243 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.3252, allocations: 4.031 kB / 0.5243 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3252, allocations: 4 kB / 0.5243 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.675e-06/0.3252, allocations: 0 / 0.5243 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3252, allocations: 3.938 kB / 0.5243 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.3252, allocations: 3 kB / 0.5243 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.3252, allocations: 4 kB / 0.5243 GB, free: 35.45 MB / 378.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 () * 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 6.711e-05/0.3253, allocations: 134.3 kB / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-06/0.3253, allocations: 3.188 kB / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.3254, allocations: 10.66 kB / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3254, allocations: 6.844 kB / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3254, allocations: 0 / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3254, allocations: 3.984 kB / 0.5245 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.53e-05/0.3254, allocations: 151.2 kB / 0.5246 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3255, allocations: 3.312 kB / 0.5246 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.3255, allocations: 3.938 kB / 0.5246 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.3255, allocations: 0 / 0.5246 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.3255, allocations: 3.938 kB / 0.5246 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3255, allocations: 0 / 0.5246 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3255, allocations: 0 / 0.5246 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.353e-05/0.3256, allocations: 99.22 kB / 0.5247 GB, free: 34.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.754e-05/0.3256, allocations: 77.11 kB / 0.5248 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.3256, allocations: 3.938 kB / 0.5248 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-06/0.3256, allocations: 6.5 kB / 0.5248 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.85e-05/0.3256, allocations: 3.375 kB / 0.5248 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3257, allocations: 0 / 0.5248 GB, free: 34.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.976e-05/0.3257, allocations: 78.12 kB / 0.5249 GB, free: 34.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3257, allocations: 4.125 kB / 0.5249 GB, free: 34.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002338/0.3259, allocations: 22.06 kB / 0.5249 GB, free: 34.8 MB / 378.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) * 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.0003192/0.3263, allocations: 204.3 kB / 0.5251 GB, free: 34.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.845e-05/0.3263, allocations: 58.47 kB / 0.5252 GB, free: 34.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.3263, allocations: 0 / 0.5252 GB, free: 34.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.798e-05/0.3264, allocations: 57.27 kB / 0.5252 GB, free: 34.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.3265, allocations: 6.594 kB / 0.5252 GB, free: 34.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000134/0.3266, allocations: 76.45 kB / 0.5253 GB, free: 34.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.039e-05/0.3267, allocations: 0.679 MB / 0.526 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.859e-06/0.3267, allocations: 3.938 kB / 0.526 GB, free: 33.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-06/0.3267, allocations: 7.438 kB / 0.526 GB, free: 33.73 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.3268, allocations: 0 / 0.526 GB, free: 33.73 MB / 378.7 MB Notification: Performance of Templates: time 0.002733/0.3295, allocations: 0.6311 MB / 0.5266 GB, free: 33.64 MB / 378.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