Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001571/0.001571, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001205/0.001205, allocations: 165.3 kB / 24.82 MB, free: 9.27 MB / 18.57 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.083/1.083, allocations: 177.1 MB / 205.3 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2502/0.2502, allocations: 32.81 MB / 294.6 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] 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.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.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 3.938 kB / 376.4 MB, free: 4.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.733e-05/2.914e-05, allocations: 6.25 kB / 376.4 MB, free: 4.438 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001342/0.001371, allocations: 0.5 MB / 376.9 MB, free: 3.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004322/0.001803, allocations: 219.5 kB / 377.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.431e-05/0.001828, allocations: 0 / 377.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.001844, allocations: 0 / 377.2 MB, free: 3.723 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.654e-06/0.001852, allocations: 3.938 kB / 377.2 MB, free: 3.719 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002774/0.002129, allocations: 43.83 kB / 377.2 MB, free: 3.676 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.332e-05/0.002183, allocations: 0 / 377.2 MB, free: 3.676 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.845e-05/0.002221, allocations: 4 kB / 377.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.398e-05/0.002255, allocations: 4 kB / 377.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.143e-05/0.002286, allocations: 0 / 377.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.975e-06/0.002294, allocations: 0 / 377.2 MB, free: 3.668 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.002411, allocations: 55.88 kB / 377.3 MB, free: 3.613 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.797e-06/0.00242, allocations: 0 / 377.3 MB, free: 3.613 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.573e-05/0.002436, allocations: 0 / 377.3 MB, free: 3.613 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001159/0.002552, allocations: 55.75 kB / 377.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.002554, allocations: 0 / 377.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.002555, allocations: 0 / 377.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.002559, allocations: 0 / 377.3 MB, free: 3.559 MB / 346.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.0003081/0.002867, allocations: 386 kB / 377.7 MB, free: 3.137 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.002908, allocations: 12.03 kB / 377.7 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.504e-05/0.002933, allocations: 0.9375 kB / 377.7 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.722e-05/0.003001, allocations: 104.6 kB / 377.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.629e-06/0.00301, allocations: 4.375 kB / 377.8 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-06/0.003015, allocations: 384 / 377.8 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.993e-05/0.003085, allocations: 63.89 kB / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.003092, allocations: 192 / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-06/0.003098, allocations: 384 / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.003103, allocations: 384 / 377.9 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.571e-05/0.003119, allocations: 33.64 kB / 377.9 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.587e-05/0.003195, allocations: 93.27 kB / 378 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.695e-05/0.003232, allocations: 52.77 kB / 378.1 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.816e-05/0.00325, allocations: 37.48 kB / 378.1 MB, free: 2.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-06/0.003254, allocations: 3.984 kB / 378.1 MB, free: 2.641 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.561e-05/0.00329, allocations: 63.03 kB / 378.2 MB, free: 2.562 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.003291, allocations: 3.938 kB / 378.2 MB, free: 2.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001443/0.003435, allocations: 114.8 kB / 378.3 MB, free: 2.422 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.003469, allocations: 81.09 kB / 378.4 MB, free: 2.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.235e-05/0.003511, allocations: 142.2 kB / 378.5 MB, free: 2.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.627e-06/0.00352, allocations: 33.83 kB / 378.5 MB, free: 2.133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.832e-05/0.003548, allocations: 126.9 kB / 378.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.392e-05/0.003562, allocations: 352 / 378.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.003584, allocations: 19.38 kB / 378.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.003702, allocations: 496.1 kB / 379.2 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.706e-05/0.003719, allocations: 25.7 kB / 379.2 MB, free: 1.449 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.367e-05/0.003733, allocations: 29.7 kB / 379.2 MB, free: 1.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.309e-05/0.003776, allocations: 75 kB / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.003778, allocations: 0 / 379.3 MB, free: 1.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.057e-05/0.003838, allocations: 93.12 kB / 379.4 MB, free: 1.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.003864, allocations: 29.7 kB / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.003869, allocations: 0 / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.00388, allocations: 3.984 kB / 379.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.092e-06/0.003881, allocations: 0 / 379.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.555e-06/0.003884, allocations: 0 / 379.4 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.343e-05/0.003897, allocations: 11.98 kB / 379.4 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.003902, allocations: 0 / 379.4 MB, free: 1.164 MB / 346.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 7.287e-05/0.003975, allocations: 182.2 kB / 379.6 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.438e-06/0.003979, allocations: 4 kB / 379.6 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.146e-05/0.003991, allocations: 3.031 kB / 379.6 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.003993, allocations: 4 kB / 379.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.003994, allocations: 0 / 379.6 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.003997, allocations: 3.938 kB / 379.6 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.727e-05/0.004054, allocations: 101.2 kB / 379.7 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.004055, allocations: 0 / 379.7 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-06/0.004057, allocations: 4 kB / 379.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.004058, allocations: 0 / 379.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.004063, allocations: 0 / 379.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.004064, allocations: 0 / 379.7 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.004066, allocations: 4 kB / 379.7 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.425e-05/0.00416, allocations: 135.8 kB / 379.8 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-06/0.004165, allocations: 0 / 379.8 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.398e-06/0.004174, allocations: 3.938 kB / 379.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.058e-06/0.004178, allocations: 0 / 379.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.827e-06/0.004187, allocations: 4 kB / 379.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.004189, allocations: 0 / 379.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.638e-05/0.004225, allocations: 127.2 kB / 380 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.004225, allocations: 0 / 380 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000145/0.00437, allocations: 15.94 kB / 380 MB, free: 0.5078 MB / 346.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.0003944/0.004764, allocations: 204.1 kB / 380.2 MB, free: 344 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.004871, allocations: 126.5 kB / 380.3 MB, free: 188 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.004873, allocations: 0 / 380.3 MB, free: 188 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.878e-05/0.004912, allocations: 88.8 kB / 380.4 MB, free: 76 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.416e-05/0.004996, allocations: 7.938 kB / 380.4 MB, free: 68 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001709/0.005167, allocations: 113.6 kB / 380.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.58e-05/0.005193, allocations: 51.36 kB / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.541e-06/0.005198, allocations: 0 / 380.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.633e-05/0.005235, allocations: 74.19 kB / 380.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.005235, allocations: 0 / 380.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of Templates: time 0.002459/0.007694, allocations: 0.6919 MB / 381.3 MB, free: 15.09 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0864333109930158]