Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001536/0.001536, allocations: 110 kB / 21.18 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 214.5 kB / 24.48 MB, free: 4.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 230.2 MB / 257.8 MB, free: 8.488 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2253/0.2253, allocations: 46.9 MB / 361.1 MB, free: 4.609 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 75.88 kB / 0.4967 GB, free: 7.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3297, allocations: 65.99 MB / 0.5612 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001497/0.3312, allocations: 487.7 kB / 0.5616 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005915/0.3318, allocations: 229.6 kB / 0.5619 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.253e-05/0.3318, allocations: 0 / 0.5619 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.211e-05/0.3318, allocations: 0 / 0.5619 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.3318, allocations: 0 / 0.5619 GB, free: 4.301 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0002774/0.3321, allocations: 39.84 kB / 0.5619 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.762e-05/0.3322, allocations: 7.984 kB / 0.5619 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.785e-05/0.3322, allocations: 3.984 kB / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.628e-05/0.3322, allocations: 0 / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.903e-05/0.3322, allocations: 0 / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.42e-06/0.3322, allocations: 0 / 0.5619 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.3324, allocations: 55.95 kB / 0.562 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.262e-06/0.3324, allocations: 3.938 kB / 0.562 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.492e-05/0.3324, allocations: 4 kB / 0.562 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001129/0.3325, allocations: 51.67 kB / 0.562 GB, free: 4.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.3325, allocations: 0 / 0.562 GB, free: 4.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.3325, allocations: 0 / 0.562 GB, free: 4.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.3325, allocations: 0 / 0.562 GB, free: 4.141 MB / 398.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.0003497/0.3328, allocations: 350.4 kB / 0.5624 GB, free: 3.746 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.3329, allocations: 8.031 kB / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.3329, allocations: 0.9375 kB / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.333, allocations: 164.4 kB / 0.5625 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.333, allocations: 4.375 kB / 0.5625 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.333, allocations: 8.375 kB / 0.5625 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.682e-05/0.3331, allocations: 26.27 kB / 0.5626 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.3331, allocations: 4.172 kB / 0.5626 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.3331, allocations: 3.938 kB / 0.5626 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.3331, allocations: 0 / 0.5626 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.991e-05/0.3332, allocations: 7.938 kB / 0.5626 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000151/0.3333, allocations: 145.7 kB / 0.5627 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.033e-05/0.3334, allocations: 22.61 kB / 0.5627 GB, free: 3.258 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.34e-05/0.3334, allocations: 4.859 kB / 0.5627 GB, free: 3.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.793e-06/0.3334, allocations: 7.938 kB / 0.5627 GB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.3334, allocations: 56.27 kB / 0.5628 GB, free: 3.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3334, allocations: 0 / 0.5628 GB, free: 3.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001733/0.3336, allocations: 71.33 kB / 0.5629 GB, free: 3.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.3336, allocations: 77.11 kB / 0.5629 GB, free: 2.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.043e-05/0.3337, allocations: 97.94 kB / 0.563 GB, free: 2.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.3337, allocations: 29.7 kB / 0.5631 GB, free: 2.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.69e-05/0.3338, allocations: 80.14 kB / 0.5631 GB, free: 2.773 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.3338, allocations: 11.88 kB / 0.5632 GB, free: 2.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.3338, allocations: 9.719 kB / 0.5632 GB, free: 2.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.3339, allocations: 314.8 kB / 0.5635 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.817e-06/0.3339, allocations: 0 / 0.5635 GB, free: 2.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.989e-06/0.3339, allocations: 0 / 0.5635 GB, free: 2.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.756e-05/0.334, allocations: 68.31 kB / 0.5635 GB, free: 2.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.334, allocations: 0 / 0.5635 GB, free: 2.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.902e-05/0.3341, allocations: 67.34 kB / 0.5636 GB, free: 2.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.3341, allocations: 29.7 kB / 0.5636 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3341, allocations: 0 / 0.5636 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.3341, allocations: 3.938 kB / 0.5636 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.3341, allocations: 0 / 0.5636 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.3341, allocations: 4 kB / 0.5636 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.364e-05/0.3342, allocations: 0 / 0.5636 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.3342, allocations: 8.016 kB / 0.5636 GB, free: 2.219 MB / 398.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 9.09e-05/0.3343, allocations: 131.5 kB / 0.5638 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.3343, allocations: 4 kB / 0.5638 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.089e-05/0.3343, allocations: 3.125 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3343, allocations: 7.938 kB / 0.5638 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.3343, allocations: 0 / 0.5638 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.173e-05/0.3343, allocations: 77.11 kB / 0.5638 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.3343, allocations: 0 / 0.5638 GB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-06/0.3343, allocations: 4 kB / 0.5639 GB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.227e-05/0.3344, allocations: 7.984 kB / 0.5639 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001292/0.3345, allocations: 194 kB / 0.564 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001668/0.3347, allocations: 240.5 kB / 0.5643 GB, free: 1.48 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.457e-05/0.3347, allocations: 0 / 0.5643 GB, free: 1.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.121e-05/0.3347, allocations: 75.28 kB / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of Backend: time 1.2e-07/0.3347, allocations: 64 / 0.5643 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006892/0.3354, allocations: 244 kB / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004295/0.3358, allocations: 0.5794 MB / 0.5651 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of Templates: time 0.003251/0.3391, allocations: 0.6104 MB / 0.5657 GB, free: 15.93 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.773709886241704]