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.001072/0.001072, allocations: 111.3 kB / 18.45 MB, free: 4.645 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.001005/0.001005, allocations: 186.2 kB / 19.38 MB, free: 3.723 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.267/1.267, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.2142/0.2142, allocations: 44.18 MB / 337.4 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 55.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3571, allocations: 60.82 MB / 0.5195 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001761/0.3589, allocations: 499 kB / 0.52 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.3602, allocations: 0.784 MB / 0.5208 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.213e-05/0.3602, allocations: 0 / 0.5208 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.903e-05/0.3602, allocations: 0 / 0.5208 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.3605, allocations: 7.156 kB / 0.5208 GB, free: 2.723 MB / 382.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.0006744/0.3611, allocations: 66.12 kB / 0.5208 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.348e-05/0.3612, allocations: 7.078 kB / 0.5208 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.29e-05/0.3613, allocations: 1.828 kB / 0.5209 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.696e-05/0.3613, allocations: 1.219 kB / 0.5209 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.229e-05/0.3614, allocations: 11.58 kB / 0.5209 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.648e-06/0.3614, allocations: 0 / 0.5209 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.3615, allocations: 59.27 kB / 0.5209 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.3616, allocations: 0 / 0.5209 GB, free: 2.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.924e-05/0.3616, allocations: 5.062 kB / 0.5209 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.3617, allocations: 46.7 kB / 0.521 GB, free: 2.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3617, allocations: 5.891 kB / 0.521 GB, free: 2.637 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3617, allocations: 0 / 0.521 GB, free: 2.637 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3618, allocations: 0 / 0.521 GB, free: 2.637 MB / 382.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.00031/0.3621, allocations: 353.1 kB / 0.5213 GB, free: 2.246 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.3621, allocations: 9.156 kB / 0.5213 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.073e-05/0.3621, allocations: 2.031 kB / 0.5213 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.921e-05/0.3622, allocations: 161.8 kB / 0.5215 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.3622, allocations: 1.906 kB / 0.5215 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.3623, allocations: 384 / 0.5215 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.037e-05/0.3623, allocations: 34.17 kB / 0.5215 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.3624, allocations: 1.094 kB / 0.5215 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3624, allocations: 8.578 kB / 0.5215 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3624, allocations: 5.047 kB / 0.5215 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.617e-05/0.3624, allocations: 1.125 kB / 0.5215 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.421e-05/0.3625, allocations: 148.6 kB / 0.5217 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.568e-05/0.3625, allocations: 17.48 kB / 0.5217 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.4e-05/0.3626, allocations: 11.67 kB / 0.5217 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.3626, allocations: 0 / 0.5217 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.3626, allocations: 62.05 kB / 0.5218 GB, free: 1.703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3626, allocations: 0 / 0.5218 GB, free: 1.703 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001643/0.3628, allocations: 70.23 kB / 0.5218 GB, free: 1.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.3628, allocations: 78.83 kB / 0.5219 GB, free: 1.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.36e-05/0.3629, allocations: 96.25 kB / 0.522 GB, free: 1.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.322e-06/0.3629, allocations: 29.83 kB / 0.522 GB, free: 1.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.367e-05/0.3629, allocations: 81.3 kB / 0.5221 GB, free: 1.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.615e-05/0.3629, allocations: 4.562 kB / 0.5221 GB, free: 1.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-05/0.363, allocations: 12.58 kB / 0.5221 GB, free: 1.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.237e-05/0.363, allocations: 312.6 kB / 0.5224 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.447e-06/0.363, allocations: 1.031 kB / 0.5224 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.542e-06/0.363, allocations: 1.547 kB / 0.5224 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.298e-05/0.3631, allocations: 72.94 kB / 0.5225 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3631, allocations: 0 / 0.5225 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.926e-05/0.3632, allocations: 64.86 kB / 0.5225 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.3632, allocations: 32.61 kB / 0.5226 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3632, allocations: 3.938 kB / 0.5226 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3632, allocations: 0.7031 kB / 0.5226 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.753e-06/0.3632, allocations: 1.438 kB / 0.5226 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3632, allocations: 0 / 0.5226 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.65e-05/0.3633, allocations: 4.422 kB / 0.5226 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.3633, allocations: 1.375 kB / 0.5226 GB, free: 0.8008 MB / 382.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 5.326e-05/0.3633, allocations: 139.5 kB / 0.5227 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.3633, allocations: 5.375 kB / 0.5227 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.828e-06/0.3634, allocations: 11.77 kB / 0.5227 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.3634, allocations: 0 / 0.5227 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3634, allocations: 2.094 kB / 0.5227 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3634, allocations: 0 / 0.5227 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.986e-05/0.3634, allocations: 153.3 kB / 0.5229 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3634, allocations: 1.062 kB / 0.5229 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-06/0.3635, allocations: 0.5625 kB / 0.5229 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.3635, allocations: 4 kB / 0.5229 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.3635, allocations: 4.938 kB / 0.5229 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3635, allocations: 5.812 kB / 0.5229 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3635, allocations: 0 / 0.5229 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.087e-05/0.3636, allocations: 89.16 kB / 0.523 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.516e-05/0.3636, allocations: 82.47 kB / 0.5231 GB, free: 244 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.3636, allocations: 5.875 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.829e-06/0.3636, allocations: 1.156 kB / 0.5231 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.485e-05/0.3636, allocations: 4 kB / 0.5231 GB, free: 236 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-06/0.3636, allocations: 5.828 kB / 0.5231 GB, free: 232 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.618e-05/0.3637, allocations: 76.56 kB / 0.5232 GB, free: 156 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3637, allocations: 0 / 0.5232 GB, free: 156 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002472/0.3639, allocations: 15.42 kB / 0.5232 GB, free: 156 kB / 382.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.0003421/0.3643, allocations: 189.4 kB / 0.5233 GB, free: 32 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.3644, allocations: 62.42 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3644, allocations: 0 / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.249e-05/0.3644, allocations: 60.19 kB / 0.5235 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.3646, allocations: 2.281 kB / 0.5235 GB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001788/0.3648, allocations: 107.6 kB / 0.5236 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.365, allocations: 0.6804 MB / 0.5242 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.899e-06/0.365, allocations: 7.438 kB / 0.5242 GB, free: 15.06 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.365, allocations: 1.438 kB / 0.5242 GB, free: 15.06 MB / 398.1 MB Notification: Performance of Templates: time 0.002438/0.3675, allocations: 0.8119 MB / 0.525 GB, free: 14.99 MB / 398.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