Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 79.06 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 164.6 kB / 23.96 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.51/1.51, allocations: 177.2 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2193/0.2193, allocations: 34.28 MB / 294.9 MB, free: 14.57 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.209e-06/5.209e-06, allocations: 4 kB / 442.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.6e-05/4.121e-05, allocations: 2.281 kB / 442.6 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001607/0.001649, allocations: 0.4922 MB / 443.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000596/0.002245, allocations: 215.4 kB / 443.3 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.682e-05/0.002271, allocations: 0 / 443.3 MB, free: 4.727 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.002288, allocations: 4 kB / 443.4 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.41e-06/0.002294, allocations: 0 / 443.4 MB, free: 4.723 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.002589, allocations: 47.75 kB / 443.4 MB, free: 4.676 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.199e-05/0.002641, allocations: 4 kB / 443.4 MB, free: 4.672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.896e-05/0.00269, allocations: 4 kB / 443.4 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.524e-05/0.002715, allocations: 0 / 443.4 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.45e-05/0.00274, allocations: 0 / 443.4 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.677e-06/0.002749, allocations: 0 / 443.4 MB, free: 4.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001368/0.002885, allocations: 51.89 kB / 443.5 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-06/0.002893, allocations: 0 / 443.5 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.769e-05/0.002911, allocations: 0 / 443.5 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.003081, allocations: 55.8 kB / 443.5 MB, free: 4.562 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.003084, allocations: 4 kB / 443.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.003085, allocations: 0 / 443.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.003094, allocations: 0 / 443.5 MB, free: 4.559 MB / 366.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.0003669/0.003461, allocations: 282.6 kB / 443.8 MB, free: 4.246 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.003498, allocations: 8.031 kB / 443.8 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.759e-05/0.003525, allocations: 0.9375 kB / 443.8 MB, free: 4.238 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.00367, allocations: 109.7 kB / 443.9 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.003678, allocations: 384 / 443.9 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.003689, allocations: 384 / 443.9 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.003793, allocations: 59.95 kB / 444 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.003802, allocations: 192 / 444 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.003809, allocations: 384 / 444 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.003813, allocations: 384 / 444 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.631e-05/0.003849, allocations: 41.64 kB / 444 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001206/0.00397, allocations: 93.33 kB / 444.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.747e-05/0.004037, allocations: 52.25 kB / 444.1 MB, free: 3.801 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.381e-05/0.004071, allocations: 34.55 kB / 444.2 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-06/0.004081, allocations: 0 / 444.2 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.00413, allocations: 64.27 kB / 444.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.004131, allocations: 0 / 444.2 MB, free: 3.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.00022/0.004351, allocations: 122.7 kB / 444.4 MB, free: 3.535 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.004412, allocations: 77.11 kB / 444.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.693e-05/0.004479, allocations: 89.86 kB / 444.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.004496, allocations: 33.77 kB / 444.6 MB, free: 3.305 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.957e-05/0.004536, allocations: 80.14 kB / 444.6 MB, free: 3.223 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.451e-05/0.00456, allocations: 3.953 kB / 444.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.004592, allocations: 17.72 kB / 444.7 MB, free: 3.195 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.004759, allocations: 314.8 kB / 445 MB, free: 2.879 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.512e-05/0.004784, allocations: 29.7 kB / 445 MB, free: 2.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.3e-05/0.004807, allocations: 25.7 kB / 445 MB, free: 2.812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.062e-05/0.004867, allocations: 64.25 kB / 445.1 MB, free: 2.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.004869, allocations: 0 / 445.1 MB, free: 2.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001135/0.004983, allocations: 93.17 kB / 445.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.005019, allocations: 33.69 kB / 445.2 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.005024, allocations: 0 / 445.2 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.005039, allocations: 0 / 445.2 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.322e-06/0.005045, allocations: 7.938 kB / 445.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.00505, allocations: 0 / 445.2 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.005069, allocations: 3.938 kB / 445.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.005075, allocations: 0 / 445.2 MB, free: 2.574 MB / 366.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 0.0001108/0.005186, allocations: 139.5 kB / 445.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.005194, allocations: 0 / 445.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.11e-05/0.005205, allocations: 7.031 kB / 445.4 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-06/0.005206, allocations: 0 / 445.4 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.005212, allocations: 3.984 kB / 445.4 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.005214, allocations: 0 / 445.4 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.096e-05/0.005305, allocations: 113.2 kB / 445.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.005306, allocations: 0 / 445.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.005307, allocations: 0 / 445.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.005308, allocations: 0 / 445.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.005315, allocations: 0 / 445.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.005315, allocations: 0 / 445.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.005316, allocations: 4 kB / 445.5 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001444/0.005461, allocations: 124.5 kB / 445.6 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-06/0.005465, allocations: 0 / 445.6 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.117e-05/0.005476, allocations: 3.938 kB / 445.6 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.005485, allocations: 3.938 kB / 445.6 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.005501, allocations: 4 kB / 445.6 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.005504, allocations: 0 / 445.6 MB, free: 2.102 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.936e-05/0.005543, allocations: 75.28 kB / 445.7 MB, free: 2.027 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.005543, allocations: 3.938 kB / 445.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002242/0.005768, allocations: 19.92 kB / 445.7 MB, free: 2.004 MB / 366.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.0006195/0.006387, allocations: 206.6 kB / 445.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001627/0.00655, allocations: 114.8 kB / 446 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.006552, allocations: 0 / 446 MB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.422e-05/0.006616, allocations: 85.09 kB / 446.1 MB, free: 1.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.006741, allocations: 2.188 kB / 446.1 MB, free: 1.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002498/0.00699, allocations: 102.6 kB / 446.2 MB, free: 1.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.758e-05/0.007048, allocations: 59.3 kB / 446.3 MB, free: 1.379 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.592e-06/0.007055, allocations: 0 / 446.3 MB, free: 1.379 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.821e-05/0.007073, allocations: 12.48 kB / 446.3 MB, free: 1.367 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.007073, allocations: 0 / 446.3 MB, free: 1.367 MB / 366.1 MB Notification: Performance of Templates: time 0.003795/0.01087, allocations: 0.6067 MB / 446.9 MB, free: 0.7578 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8582530207931995]