Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 104.4 kB / 17.98 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 193.3 kB / 18.91 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2029/0.2029, allocations: 44.17 MB / 336.9 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 66.98 kB / 408.6 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1152, allocations: 60.82 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001933/0.1172, allocations: 0.5479 MB / 469.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.1184, allocations: 0.7642 MB / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.48e-05/0.1185, allocations: 0 / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.1185, allocations: 0 / 470.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001749/0.1187, allocations: 0 / 470.7 MB, free: 13.41 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.000633/0.1193, allocations: 51.89 kB / 470.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.641e-05/0.1194, allocations: 7.828 kB / 470.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.399e-05/0.1194, allocations: 0 / 470.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.146e-05/0.1195, allocations: 4 kB / 470.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.337e-05/0.1195, allocations: 7.984 kB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.1196, allocations: 0 / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.1197, allocations: 47.91 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.118e-05/0.1197, allocations: 7.922 kB / 470.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.972e-05/0.1198, allocations: 4 kB / 470.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1199, allocations: 39.88 kB / 470.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1199, allocations: 4 kB / 470.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.1199, allocations: 0 / 470.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1199, allocations: 0 / 470.9 MB, free: 13.24 MB / 350.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.0004058/0.1203, allocations: 353.3 kB / 471.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1204, allocations: 8.031 kB / 471.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.1204, allocations: 4.938 kB / 471.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.1205, allocations: 160.4 kB / 471.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.825e-06/0.1206, allocations: 384 / 471.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.001e-05/0.1206, allocations: 384 / 471.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.689e-05/0.1207, allocations: 38.25 kB / 471.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.1207, allocations: 192 / 471.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.1207, allocations: 3.938 kB / 471.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1207, allocations: 0 / 471.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.857e-05/0.1207, allocations: 3.938 kB / 471.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.1209, allocations: 149.7 kB / 471.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.548e-05/0.1209, allocations: 14.58 kB / 471.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.469e-05/0.1209, allocations: 8.953 kB / 471.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.1209, allocations: 7.984 kB / 471.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.121, allocations: 56.27 kB / 471.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.121, allocations: 0 / 471.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001749/0.1212, allocations: 71.28 kB / 471.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.1212, allocations: 77.11 kB / 471.8 MB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.614e-05/0.1213, allocations: 97.84 kB / 471.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.1213, allocations: 25.95 kB / 471.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.671e-05/0.1214, allocations: 84.14 kB / 472 MB, free: 11.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.1214, allocations: 3.906 kB / 472 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.802e-05/0.1214, allocations: 13.72 kB / 472 MB, free: 11.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1215, allocations: 314.8 kB / 472.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/0.1215, allocations: 0 / 472.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.614e-06/0.1215, allocations: 7.938 kB / 472.3 MB, free: 11.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.607e-05/0.1216, allocations: 60.27 kB / 472.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1216, allocations: 8.062 kB / 472.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.213e-05/0.1217, allocations: 63.33 kB / 472.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.1217, allocations: 37.7 kB / 472.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1217, allocations: 3.938 kB / 472.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.1218, allocations: 0 / 472.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1218, allocations: 0 / 472.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1218, allocations: 3.984 kB / 472.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.1218, allocations: 0 / 472.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.1218, allocations: 7.938 kB / 472.5 MB, free: 11.31 MB / 350.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 8.857e-05/0.1219, allocations: 139.6 kB / 472.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-06/0.1219, allocations: 0 / 472.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.406e-05/0.1219, allocations: 15.02 kB / 472.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1219, allocations: 0 / 472.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.122, allocations: 0 / 472.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.122, allocations: 0 / 472.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.768e-05/0.1221, allocations: 146 kB / 472.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1221, allocations: 0 / 472.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.384e-06/0.1221, allocations: 4 kB / 472.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.1221, allocations: 3.984 kB / 472.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.016e-06/0.1221, allocations: 7.938 kB / 472.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1221, allocations: 0 / 472.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1221, allocations: 0 / 472.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.251e-05/0.1222, allocations: 94.77 kB / 472.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-05/0.1223, allocations: 77.11 kB / 473 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.1223, allocations: 7.938 kB / 473 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.045e-05/0.1223, allocations: 4 kB / 473 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.1223, allocations: 0 / 473 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.1223, allocations: 4.031 kB / 473 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.124e-05/0.1224, allocations: 75.28 kB / 473.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1224, allocations: 0 / 473.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002139/0.1226, allocations: 23.98 kB / 473.1 MB, free: 10.61 MB / 350.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.0003696/0.123, allocations: 200 kB / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.764e-05/0.1231, allocations: 63.39 kB / 473.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.1231, allocations: 0 / 473.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.752e-05/0.1231, allocations: 59.34 kB / 473.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.1233, allocations: 4.125 kB / 473.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001852/0.1235, allocations: 106.6 kB / 473.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.1237, allocations: 0.6768 MB / 474.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.177e-05/0.1237, allocations: 7.438 kB / 474.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1237, allocations: 0 / 474.2 MB, free: 9.449 MB / 350.1 MB Notification: Performance of Templates: time 0.002205/0.126, allocations: 0.8116 MB / 475 MB, free: 8.637 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches