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.002319/0.002319, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002859/0.002859, allocations: 165.3 kB / 24.27 MB, free: 156 kB / 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.734/1.734, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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.3738/0.3738, allocations: 34.26 MB / 295.3 MB, free: 0.6602 MB / 266.7 MB " [Timeout remaining time 179] 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 3.808e-06/3.808e-06, allocations: 0 / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.162e-05/4.543e-05, allocations: 2.312 kB / 377.3 MB, free: 2.988 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0028/0.002846, allocations: 0.4888 MB / 377.7 MB, free: 2.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.003983, allocations: 223.5 kB / 378 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.16e-05/0.004014, allocations: 0 / 378 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.46e-05/0.004029, allocations: 0 / 378 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.713e-06/0.004036, allocations: 0 / 378 MB, free: 2.281 MB / 346.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.0005245/0.00456, allocations: 51.7 kB / 378 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.802e-05/0.004628, allocations: 0 / 378 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.504e-05/0.004683, allocations: 0 / 378 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.491e-05/0.004728, allocations: 0 / 378 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.655e-05/0.004765, allocations: 4 kB / 378 MB, free: 2.227 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.004781, allocations: 7.984 kB / 378 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000232/0.005013, allocations: 43.95 kB / 378.1 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.618e-06/0.005022, allocations: 0 / 378.1 MB, free: 2.176 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.047e-05/0.005053, allocations: 4 kB / 378.1 MB, free: 2.172 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.005273, allocations: 51.81 kB / 378.1 MB, free: 2.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.005276, allocations: 0 / 378.1 MB, free: 2.121 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.005277, allocations: 3.938 kB / 378.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.005281, allocations: 0 / 378.1 MB, free: 2.117 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.0006308/0.005912, allocations: 378 kB / 378.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.00597, allocations: 12.03 kB / 378.5 MB, free: 1.691 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.006018, allocations: 0.9375 kB / 378.5 MB, free: 1.691 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.00617, allocations: 112.6 kB / 378.6 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.006187, allocations: 384 / 378.6 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.006203, allocations: 4.375 kB / 378.6 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.00635, allocations: 55.95 kB / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.006361, allocations: 192 / 378.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.00638, allocations: 8.359 kB / 378.7 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.006385, allocations: 384 / 378.7 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.286e-05/0.006448, allocations: 29.64 kB / 378.7 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002048/0.006653, allocations: 116.6 kB / 378.8 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.006787, allocations: 48.77 kB / 378.9 MB, free: 1.227 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.187e-05/0.006858, allocations: 41.48 kB / 378.9 MB, free: 1.176 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.006876, allocations: 3.984 kB / 378.9 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.936e-05/0.006966, allocations: 59.09 kB / 379 MB, free: 1.098 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.603e-06/0.006967, allocations: 0 / 379 MB, free: 1.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003514/0.007319, allocations: 122.7 kB / 379.1 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.007425, allocations: 85.09 kB / 379.2 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.007574, allocations: 142.2 kB / 379.3 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.934e-05/0.007603, allocations: 25.7 kB / 379.3 MB, free: 0.668 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.007721, allocations: 126.9 kB / 379.5 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.007749, allocations: 0 / 379.5 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.172e-05/0.007821, allocations: 27.5 kB / 379.5 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004201/0.008241, allocations: 496.1 kB / 380 MB, free: 8 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.319e-05/0.008314, allocations: 29.7 kB / 380 MB, free: 15.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.51e-05/0.008359, allocations: 25.7 kB / 380 MB, free: 15.94 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.008474, allocations: 71.02 kB / 380.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.008477, allocations: 0 / 380.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001937/0.008671, allocations: 93.05 kB / 380.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.008732, allocations: 31.89 kB / 380.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.00874, allocations: 0 / 380.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.008762, allocations: 4.094 kB / 380.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.813e-06/0.008764, allocations: 4 kB / 380.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.008774, allocations: 3.984 kB / 380.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.9e-05/0.008803, allocations: 3.938 kB / 380.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.008813, allocations: 0 / 380.2 MB, free: 15.7 MB / 362.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 0.0002169/0.00903, allocations: 182.3 kB / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.00905, allocations: 3.953 kB / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.157e-05/0.009062, allocations: 3 kB / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.009064, allocations: 0 / 380.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.009077, allocations: 4 kB / 380.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.009081, allocations: 0 / 380.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.009253, allocations: 120.6 kB / 380.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.009255, allocations: 0 / 380.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.009256, allocations: 0 / 380.5 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.009263, allocations: 4 kB / 380.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.009278, allocations: 4 kB / 380.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.00928, allocations: 0 / 380.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.009283, allocations: 0 / 380.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002668/0.00955, allocations: 135.7 kB / 380.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.961e-06/0.009556, allocations: 0 / 380.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.009581, allocations: 4 kB / 380.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.596e-05/0.009597, allocations: 4.031 kB / 380.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.009617, allocations: 0 / 380.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-06/0.009623, allocations: 0 / 380.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.892e-05/0.009722, allocations: 123.2 kB / 380.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.009722, allocations: 4 kB / 380.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003921/0.01011, allocations: 19.92 kB / 380.8 MB, free: 15.01 MB / 362.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.001035/0.01115, allocations: 206.4 kB / 381 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.01139, allocations: 122.5 kB / 381.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.01139, allocations: 0 / 381.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.01152, allocations: 96.72 kB / 381.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.01173, allocations: 4.125 kB / 381.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003384/0.01207, allocations: 117.7 kB / 381.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.418e-05/0.01215, allocations: 55.36 kB / 381.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.522e-06/0.01216, allocations: 0 / 381.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.966e-05/0.01218, allocations: 8.5 kB / 381.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01218, allocations: 0 / 381.4 MB, free: 14.33 MB / 362.7 MB Notification: Performance of Templates: time 0.005933/0.01811, allocations: 0.6221 MB / 382.1 MB, free: 13.71 MB / 362.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","/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: 5.084238933050074]