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.001319/0.001319, allocations: 109 kB / 17.21 MB, free: 6.293 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.001413/0.001413, allocations: 194 kB / 18.12 MB, free: 5.383 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.433/1.433, allocations: 222.9 MB / 241.8 MB, free: 15.36 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.216/0.216, allocations: 44.17 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 64.42 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1218, allocations: 60.83 MB / 468.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00168/0.1235, allocations: 0.5332 MB / 469 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1246, allocations: 0.7681 MB / 469.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.254e-05/0.1246, allocations: 0 / 469.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.665e-05/0.1247, allocations: 0 / 469.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.1248, allocations: 4 kB / 469.8 MB, free: 13.54 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.0005408/0.1253, allocations: 61.7 kB / 469.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.403e-05/0.1254, allocations: 0 / 469.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.271e-05/0.1254, allocations: 0 / 469.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.048e-05/0.1254, allocations: 15.81 kB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.946e-05/0.1255, allocations: 3.984 kB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.114e-06/0.1255, allocations: 0 / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.1257, allocations: 51.95 kB / 470 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.743e-06/0.1257, allocations: 0 / 470 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.759e-05/0.1257, allocations: 0 / 470 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.1258, allocations: 51.88 kB / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1258, allocations: 0 / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1258, allocations: 4 kB / 470 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.1258, allocations: 0 / 470 MB, free: 13.36 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.0003071/0.1262, allocations: 353.3 kB / 470.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1262, allocations: 8.031 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.822e-05/0.1262, allocations: 0.9375 kB / 470.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.831e-05/0.1263, allocations: 164.4 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.1263, allocations: 4.375 kB / 470.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.1264, allocations: 384 / 470.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.859e-05/0.1264, allocations: 34.2 kB / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.1265, allocations: 4.188 kB / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.1265, allocations: 3.938 kB / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1265, allocations: 0 / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.752e-05/0.1265, allocations: 0 / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001184/0.1266, allocations: 153.7 kB / 470.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.079e-05/0.1267, allocations: 14.58 kB / 470.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.366e-05/0.1267, allocations: 4.859 kB / 470.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-06/0.1267, allocations: 4 kB / 470.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.1268, allocations: 64.27 kB / 470.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.1268, allocations: 0 / 470.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001478/0.1269, allocations: 71.33 kB / 470.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.127, allocations: 77.11 kB / 470.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.716e-05/0.127, allocations: 93.86 kB / 471 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.1271, allocations: 25.95 kB / 471.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.104e-05/0.1271, allocations: 84.14 kB / 471.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.1271, allocations: 3.906 kB / 471.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.1271, allocations: 17.66 kB / 471.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1273, allocations: 318.8 kB / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.906e-06/0.1273, allocations: 0 / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.264e-06/0.1273, allocations: 3.938 kB / 471.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.925e-05/0.1273, allocations: 60.27 kB / 471.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1273, allocations: 4.062 kB / 471.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.039e-05/0.1274, allocations: 63.41 kB / 471.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.1274, allocations: 33.69 kB / 471.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1275, allocations: 7.938 kB / 471.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.1275, allocations: 3.938 kB / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1275, allocations: 0 / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1275, allocations: 0 / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.1275, allocations: 0 / 471.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.1275, allocations: 0 / 471.7 MB, free: 11.43 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 7.893e-05/0.1276, allocations: 139.6 kB / 471.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-06/0.1276, allocations: 0 / 471.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.219e-05/0.1276, allocations: 11.02 kB / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1276, allocations: 3.984 kB / 471.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.1276, allocations: 3.938 kB / 471.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1276, allocations: 7.984 kB / 471.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.028e-05/0.1277, allocations: 150 kB / 472 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1277, allocations: 4 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.1277, allocations: 0 / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.1278, allocations: 0 / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.1278, allocations: 7.938 kB / 472 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1278, allocations: 4 kB / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1278, allocations: 3.984 kB / 472 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.29e-05/0.1279, allocations: 86.84 kB / 472.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.669e-05/0.1279, allocations: 77.11 kB / 472.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1279, allocations: 7.922 kB / 472.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-06/0.1279, allocations: 0 / 472.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.128, allocations: 0 / 472.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.128, allocations: 8.031 kB / 472.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.209e-05/0.128, allocations: 75.28 kB / 472.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.128, allocations: 0 / 472.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000217/0.1282, allocations: 19.94 kB / 472.2 MB, free: 10.73 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.0003633/0.1286, allocations: 189 kB / 472.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.252e-05/0.1287, allocations: 59.41 kB / 472.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1287, allocations: 0 / 472.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.808e-05/0.1287, allocations: 51.41 kB / 472.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1289, allocations: 11 kB / 472.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001719/0.129, allocations: 86.75 kB / 472.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.1293, allocations: 0.6692 MB / 473.3 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.369e-05/0.1293, allocations: 3.984 kB / 473.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.025e-06/0.1293, allocations: 7.438 kB / 473.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1293, allocations: 4 kB / 473.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of Templates: time 0.002718/0.132, allocations: 0.6482 MB / 474 MB, free: 8.953 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/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_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches