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.0009406/0.0009406, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001019/0.001019, allocations: 173.9 kB / 24.91 MB, free: 8.723 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.032/1.032, allocations: 177.1 MB / 205.3 MB, free: 5.094 MB / 186.7 MB " [Timeout remaining time 179] 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.268/0.268, allocations: 34.25 MB / 296.1 MB, free: 0.5977 MB / 266.7 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 1.613e-06/1.613e-06, allocations: 0 / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.314e-05, allocations: 9.781 kB / 325.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001142/0.001165, allocations: 494 kB / 325.7 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004046/0.00157, allocations: 235.2 kB / 325.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.891e-05/0.001589, allocations: 0 / 325.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.001601, allocations: 0 / 325.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-06/0.001607, allocations: 0 / 325.9 MB, free: 7.004 MB / 298.7 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.000241/0.001848, allocations: 35.84 kB / 326 MB, free: 6.969 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.5e-05/0.001893, allocations: 7.984 kB / 326 MB, free: 6.961 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.019e-05/0.001924, allocations: 3.984 kB / 326 MB, free: 6.957 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.743e-05/0.001951, allocations: 7.875 kB / 326 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.465e-05/0.001976, allocations: 4 kB / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.001983, allocations: 0 / 326 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.744e-05/0.00208, allocations: 47.89 kB / 326 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.044e-06/0.002088, allocations: 4 kB / 326 MB, free: 6.895 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.556e-05/0.002103, allocations: 4 kB / 326 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.749e-05/0.002201, allocations: 56.48 kB / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.002203, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.002203, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.002206, allocations: 0 / 326.1 MB, free: 6.836 MB / 298.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.000207/0.002413, allocations: 246.3 kB / 326.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.002445, allocations: 12.03 kB / 326.3 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.019e-05/0.002466, allocations: 0.9375 kB / 326.3 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.698e-05/0.002512, allocations: 101.8 kB / 326.4 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.002521, allocations: 8.312 kB / 326.5 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.196e-06/0.002529, allocations: 8.312 kB / 326.5 MB, free: 6.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.839e-05/0.002588, allocations: 59.95 kB / 326.5 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.27e-06/0.002593, allocations: 192 / 326.5 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-06/0.002599, allocations: 4.375 kB / 326.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.002602, allocations: 384 / 326.5 MB, free: 6.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.524e-05/0.002617, allocations: 29.64 kB / 326.6 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.224e-05/0.00267, allocations: 57.05 kB / 326.6 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.783e-05/0.002708, allocations: 52.2 kB / 326.7 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.37e-05/0.002721, allocations: 34.66 kB / 326.7 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-06/0.002724, allocations: 4 kB / 326.7 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.002752, allocations: 60.25 kB / 326.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.002753, allocations: 0 / 326.8 MB, free: 6.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.459e-05/0.002847, allocations: 110.8 kB / 326.9 MB, free: 5.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.002877, allocations: 77.11 kB / 326.9 MB, free: 5.816 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.962e-05/0.002907, allocations: 93.84 kB / 327 MB, free: 5.715 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.504e-06/0.002914, allocations: 25.7 kB / 327.1 MB, free: 5.684 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.704e-05/0.002931, allocations: 84.14 kB / 327.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.002947, allocations: 5.359 kB / 327.1 MB, free: 5.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.002967, allocations: 9.719 kB / 327.2 MB, free: 5.578 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.703e-05/0.003034, allocations: 330.8 kB / 327.5 MB, free: 5.246 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.003047, allocations: 25.7 kB / 327.5 MB, free: 5.215 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.206e-05/0.003059, allocations: 25.7 kB / 327.5 MB, free: 5.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.553e-05/0.003095, allocations: 60.27 kB / 327.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.003097, allocations: 0 / 327.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.886e-05/0.003146, allocations: 93.09 kB / 327.7 MB, free: 5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.003172, allocations: 29.7 kB / 327.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-06/0.003176, allocations: 0 / 327.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.003186, allocations: 0 / 327.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.916e-06/0.003188, allocations: 96 / 327.7 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.495e-06/0.003191, allocations: 4 kB / 327.7 MB, free: 4.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.059e-05/0.003202, allocations: 7.938 kB / 327.7 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.003206, allocations: 0 / 327.7 MB, free: 4.953 MB / 298.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 5.466e-05/0.003261, allocations: 139.5 kB / 327.9 MB, free: 4.801 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-06/0.003265, allocations: 4 kB / 327.9 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.374e-06/0.003273, allocations: 3 kB / 327.9 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.003274, allocations: 0 / 327.9 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.003276, allocations: 3.938 kB / 327.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.003278, allocations: 0 / 327.9 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.192e-05/0.00332, allocations: 65.84 kB / 327.9 MB, free: 4.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.003321, allocations: 4 kB / 327.9 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-07/0.003321, allocations: 0 / 327.9 MB, free: 4.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.003323, allocations: 3.984 kB / 327.9 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-06/0.003326, allocations: 0 / 327.9 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.4e-07/0.003326, allocations: 0 / 327.9 MB, free: 4.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.003327, allocations: 4 kB / 327.9 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.911e-05/0.003396, allocations: 124.5 kB / 328.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.336e-06/0.0034, allocations: 352 / 328.1 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.017e-06/0.003409, allocations: 3.938 kB / 328.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.128e-06/0.003413, allocations: 4 kB / 328.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-06/0.003419, allocations: 4.031 kB / 328.1 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-06/0.003421, allocations: 0 / 328.1 MB, free: 4.535 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.222e-06/0.003427, allocations: 4.859 kB / 328.1 MB, free: 4.527 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.003427, allocations: 0 / 328.1 MB, free: 4.527 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001141/0.003541, allocations: 15.94 kB / 328.1 MB, free: 4.512 MB / 298.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.0003461/0.003887, allocations: 210.6 kB / 328.3 MB, free: 4.359 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.849e-05/0.003976, allocations: 120.2 kB / 328.4 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.003978, allocations: 0 / 328.4 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.585e-05/0.004004, allocations: 85.97 kB / 328.5 MB, free: 4.109 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.26e-05/0.004046, allocations: 8.062 kB / 328.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001367/0.004183, allocations: 110.7 kB / 328.6 MB, free: 3.961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.412e-05/0.004207, allocations: 59.3 kB / 328.7 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.278e-06/0.004212, allocations: 0 / 328.7 MB, free: 3.883 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.489e-05/0.004246, allocations: 55.36 kB / 328.7 MB, free: 3.828 MB / 298.7 MB Notification: Performance of SimCode: time 7.62e-07/0.004247, allocations: 0 / 328.7 MB, free: 3.828 MB / 298.7 MB Notification: Performance of Templates: time 0.001916/0.006163, allocations: 0.6914 MB / 329.4 MB, free: 3.141 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9637734559364617]