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.001923/0.001923, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002552/0.002552, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.515/1.515, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.2249/0.2249, allocations: 44.91 MB / 359.6 MB, free: 6.277 MB / 286.1 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: 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.002273/0.002273, allocations: 67.91 kB / 0.4943 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3068, allocations: 65.45 MB / 0.5582 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001623/0.3084, allocations: 0.4893 MB / 0.5587 GB, free: 7.246 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005795/0.309, allocations: 229.6 kB / 0.5589 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.197e-05/0.309, allocations: 0 / 0.5589 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.309, allocations: 0 / 0.5589 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-06/0.309, allocations: 0 / 0.5589 GB, free: 7.023 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.0003024/0.3093, allocations: 47.83 kB / 0.559 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.214e-05/0.3094, allocations: 4 kB / 0.559 GB, free: 6.973 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.3094, allocations: 4 kB / 0.559 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.54e-05/0.3094, allocations: 4 kB / 0.559 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.305e-05/0.3094, allocations: 3.984 kB / 0.559 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.169e-06/0.3094, allocations: 0 / 0.559 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.3096, allocations: 51.89 kB / 0.559 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.56e-06/0.3096, allocations: 4 kB / 0.559 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.719e-05/0.3096, allocations: 0 / 0.559 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.3097, allocations: 47.67 kB / 0.5591 GB, free: 6.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3097, allocations: 0 / 0.5591 GB, free: 6.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3097, allocations: 0 / 0.5591 GB, free: 6.863 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.3097, allocations: 3.938 kB / 0.5591 GB, free: 6.859 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.0003329/0.31, allocations: 278.6 kB / 0.5593 GB, free: 6.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.3101, allocations: 12.03 kB / 0.5594 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.64e-05/0.3101, allocations: 0.9375 kB / 0.5594 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.362e-05/0.3102, allocations: 102.5 kB / 0.5595 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.3102, allocations: 384 / 0.5595 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.3102, allocations: 4.375 kB / 0.5595 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.276e-05/0.3103, allocations: 30.25 kB / 0.5595 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.3103, allocations: 192 / 0.5595 GB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.3103, allocations: 7.938 kB / 0.5595 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.3103, allocations: 0 / 0.5595 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.124e-05/0.3103, allocations: 15.92 kB / 0.5595 GB, free: 6.355 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001313/0.3105, allocations: 116.7 kB / 0.5596 GB, free: 6.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.413e-05/0.3105, allocations: 18.61 kB / 0.5596 GB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.3105, allocations: 4.859 kB / 0.5596 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-06/0.3105, allocations: 0 / 0.5596 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.426e-05/0.3106, allocations: 64.27 kB / 0.5597 GB, free: 6.086 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3106, allocations: 0 / 0.5597 GB, free: 6.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001688/0.3108, allocations: 71.33 kB / 0.5598 GB, free: 6.004 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.3108, allocations: 81.11 kB / 0.5598 GB, free: 5.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.033e-05/0.3109, allocations: 93.81 kB / 0.5599 GB, free: 5.805 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.3109, allocations: 25.7 kB / 0.56 GB, free: 5.773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.3109, allocations: 80.14 kB / 0.56 GB, free: 5.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.3109, allocations: 0 / 0.56 GB, free: 5.691 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.311, allocations: 21.84 kB / 0.5601 GB, free: 5.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.3111, allocations: 318.8 kB / 0.5604 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.869e-06/0.3111, allocations: 0 / 0.5604 GB, free: 5.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.3111, allocations: 0 / 0.5604 GB, free: 5.344 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.139e-05/0.3112, allocations: 60.27 kB / 0.5604 GB, free: 5.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3112, allocations: 0 / 0.5604 GB, free: 5.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.676e-05/0.3113, allocations: 67.34 kB / 0.5605 GB, free: 5.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.3113, allocations: 33.69 kB / 0.5605 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3113, allocations: 4.094 kB / 0.5605 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3113, allocations: 7.938 kB / 0.5605 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.3113, allocations: 0 / 0.5605 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.128e-06/0.3113, allocations: 0 / 0.5605 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.3114, allocations: 0 / 0.5605 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.3114, allocations: 0 / 0.5605 GB, free: 5.141 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.0001065/0.3115, allocations: 139.5 kB / 0.5607 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.3115, allocations: 0 / 0.5607 GB, free: 4.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.155e-05/0.3115, allocations: 6.938 kB / 0.5607 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3115, allocations: 4 kB / 0.5607 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3115, allocations: 3.938 kB / 0.5607 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.3115, allocations: 3.984 kB / 0.5607 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.3116, allocations: 116.8 kB / 0.5608 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3116, allocations: 0 / 0.5608 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3116, allocations: 0 / 0.5608 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3116, allocations: 0 / 0.5608 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3116, allocations: 11.94 kB / 0.5608 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3116, allocations: 0 / 0.5608 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3116, allocations: 4 kB / 0.5608 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.3117, allocations: 94.77 kB / 0.5609 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.913e-06/0.3117, allocations: 4 kB / 0.5609 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.3117, allocations: 7.922 kB / 0.5609 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-06/0.3118, allocations: 0 / 0.5609 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.423e-05/0.3118, allocations: 0 / 0.5609 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.3118, allocations: 3.984 kB / 0.5609 GB, free: 4.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.008e-05/0.3118, allocations: 75.28 kB / 0.561 GB, free: 4.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3118, allocations: 4 kB / 0.561 GB, free: 4.586 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002191/0.312, allocations: 19.97 kB / 0.561 GB, free: 4.566 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.0004184/0.3124, allocations: 185.6 kB / 0.5612 GB, free: 4.406 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001087/0.3126, allocations: 59.41 kB / 0.5612 GB, free: 4.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.3126, allocations: 3.938 kB / 0.5612 GB, free: 4.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/0.3126, allocations: 55.41 kB / 0.5613 GB, free: 4.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.3127, allocations: 4 kB / 0.5613 GB, free: 4.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002149/0.3129, allocations: 110.7 kB / 0.5614 GB, free: 4.121 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.3132, allocations: 0.6808 MB / 0.5621 GB, free: 3.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.295e-05/0.3132, allocations: 7.438 kB / 0.5621 GB, free: 3.406 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3132, allocations: 0 / 0.5621 GB, free: 3.406 MB / 398.1 MB Notification: Performance of Templates: time 0.0025/0.3157, allocations: 0.7463 MB / 0.5628 GB, free: 2.66 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/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: 7.387686348054558]