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.001963/0.001963, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002206/0.002206, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.2396/0.2396, allocations: 44.93 MB / 358.8 MB, free: 6.07 MB / 286.1 MB " [Timeout remaining time 179] 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002162/0.002162, allocations: 63.91 kB / 0.4935 GB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3095, allocations: 65.48 MB / 0.5574 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001671/0.3112, allocations: 485 kB / 0.5579 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000614/0.3118, allocations: 217.8 kB / 0.5581 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.29e-05/0.3119, allocations: 0 / 0.5581 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.485e-05/0.3119, allocations: 0 / 0.5581 GB, free: 6.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.3119, allocations: 3.938 kB / 0.5581 GB, free: 6.809 MB / 398.1 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.000298/0.3122, allocations: 51.83 kB / 0.5582 GB, free: 6.758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.177e-05/0.3122, allocations: 0 / 0.5582 GB, free: 6.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.558e-05/0.3123, allocations: 3.984 kB / 0.5582 GB, free: 6.754 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.744e-05/0.3123, allocations: 4 kB / 0.5582 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.363e-05/0.3123, allocations: 0 / 0.5582 GB, free: 6.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.951e-06/0.3123, allocations: 3.938 kB / 0.5582 GB, free: 6.746 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.3124, allocations: 47.95 kB / 0.5582 GB, free: 6.699 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.953e-06/0.3124, allocations: 8 kB / 0.5582 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.3125, allocations: 0 / 0.5582 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.3126, allocations: 43.73 kB / 0.5583 GB, free: 6.652 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3126, allocations: 0 / 0.5583 GB, free: 6.652 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3126, allocations: 0 / 0.5583 GB, free: 6.652 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.3126, allocations: 0 / 0.5583 GB, free: 6.652 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.0003415/0.3129, allocations: 282.6 kB / 0.5585 GB, free: 6.344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.313, allocations: 8.031 kB / 0.5585 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.872e-05/0.313, allocations: 0.9375 kB / 0.5585 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.907e-05/0.3131, allocations: 106.5 kB / 0.5586 GB, free: 6.207 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.3131, allocations: 4.375 kB / 0.5586 GB, free: 6.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.3131, allocations: 8.312 kB / 0.5587 GB, free: 6.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.3132, allocations: 59.95 kB / 0.5587 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3133, allocations: 192 / 0.5587 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.3133, allocations: 3.938 kB / 0.5587 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3133, allocations: 0 / 0.5587 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.515e-05/0.3133, allocations: 29.64 kB / 0.5587 GB, free: 6.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.3134, allocations: 105.3 kB / 0.5588 GB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.329e-05/0.3135, allocations: 44.27 kB / 0.5589 GB, free: 5.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.267e-05/0.3135, allocations: 34.66 kB / 0.5589 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.877e-06/0.3135, allocations: 0 / 0.5589 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.073e-05/0.3136, allocations: 60.27 kB / 0.559 GB, free: 5.777 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3136, allocations: 0 / 0.559 GB, free: 5.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000214/0.3138, allocations: 126.7 kB / 0.5591 GB, free: 5.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.3139, allocations: 81.11 kB / 0.5592 GB, free: 5.531 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.72e-05/0.3139, allocations: 93.81 kB / 0.5593 GB, free: 5.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.314, allocations: 25.7 kB / 0.5593 GB, free: 5.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.438e-05/0.314, allocations: 80.14 kB / 0.5594 GB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.314, allocations: 0 / 0.5594 GB, free: 5.316 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.314, allocations: 13.72 kB / 0.5594 GB, free: 5.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.3142, allocations: 314.8 kB / 0.5597 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.509e-05/0.3142, allocations: 29.83 kB / 0.5597 GB, free: 4.945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.188e-05/0.3142, allocations: 33.69 kB / 0.5597 GB, free: 4.906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.585e-05/0.3143, allocations: 60.27 kB / 0.5598 GB, free: 4.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.3143, allocations: 0 / 0.5598 GB, free: 4.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.752e-05/0.3144, allocations: 89.05 kB / 0.5599 GB, free: 4.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.3144, allocations: 37.69 kB / 0.5599 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3144, allocations: 3.938 kB / 0.5599 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.3145, allocations: 0 / 0.5599 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-06/0.3145, allocations: 3.938 kB / 0.5599 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.3145, allocations: 4.094 kB / 0.5599 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.663e-05/0.3145, allocations: 4 kB / 0.5599 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.3145, allocations: 0 / 0.5599 GB, free: 4.668 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 0.0001079/0.3146, allocations: 131.5 kB / 0.5601 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.3146, allocations: 4 kB / 0.5601 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.042e-05/0.3146, allocations: 3 kB / 0.5601 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.3146, allocations: 3.938 kB / 0.5601 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3146, allocations: 0 / 0.5601 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3146, allocations: 3.984 kB / 0.5601 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.073e-05/0.3147, allocations: 101.3 kB / 0.5602 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3147, allocations: 4 kB / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3147, allocations: 0 / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.113e-06/0.3147, allocations: 0 / 0.5602 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-06/0.3147, allocations: 3.938 kB / 0.5602 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3147, allocations: 0 / 0.5602 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3147, allocations: 3.938 kB / 0.5602 GB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001305/0.3148, allocations: 124.5 kB / 0.5603 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.021e-06/0.3149, allocations: 4 kB / 0.5603 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.132e-05/0.3149, allocations: 0 / 0.5603 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.3149, allocations: 0 / 0.5603 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.761e-05/0.3149, allocations: 3.938 kB / 0.5603 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.3149, allocations: 4.031 kB / 0.5603 GB, free: 4.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.687e-05/0.3149, allocations: 79.28 kB / 0.5604 GB, free: 4.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3149, allocations: 0 / 0.5604 GB, free: 4.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.3151, allocations: 19.92 kB / 0.5604 GB, free: 4.105 MB / 398.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.0004814/0.3156, allocations: 200.2 kB / 0.5606 GB, free: 3.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000156/0.3158, allocations: 118.7 kB / 0.5607 GB, free: 3.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3158, allocations: 0 / 0.5607 GB, free: 3.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.642e-05/0.3158, allocations: 85.09 kB / 0.5608 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.316, allocations: 0 / 0.5608 GB, free: 3.695 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002143/0.3162, allocations: 110.8 kB / 0.5609 GB, free: 3.555 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.863e-05/0.3162, allocations: 59.36 kB / 0.5609 GB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.099e-06/0.3162, allocations: 0 / 0.5609 GB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.425e-05/0.3163, allocations: 7.438 kB / 0.561 GB, free: 3.469 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3163, allocations: 0 / 0.561 GB, free: 3.469 MB / 398.1 MB Notification: Performance of Templates: time 0.00356/0.3198, allocations: 0.5885 MB / 0.5615 GB, free: 2.887 MB / 398.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.1212533712387085]