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.005428/0.005428, allocations: 105.4 kB / 21.98 MB, free: 5.223 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.001384/0.001384, allocations: 214.3 kB / 25.29 MB, free: 3.203 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.405/1.405, allocations: 230.5 MB / 258.9 MB, free: 8.027 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.2209/0.2209, allocations: 46.93 MB / 362.3 MB, free: 4.191 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.002307/0.002307, allocations: 83.84 kB / 0.4982 GB, free: 7.285 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3074, allocations: 66.07 MB / 0.5627 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001759/0.3092, allocations: 488.5 kB / 0.5632 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006193/0.3098, allocations: 241.5 kB / 0.5634 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.929e-05/0.3098, allocations: 0 / 0.5634 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.3098, allocations: 0 / 0.5634 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.602e-06/0.3098, allocations: 0 / 0.5634 GB, free: 3.559 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.0003224/0.3102, allocations: 47.83 kB / 0.5634 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.637e-05/0.3102, allocations: 0 / 0.5634 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.263e-05/0.3103, allocations: 0 / 0.5634 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.3103, allocations: 7.984 kB / 0.5635 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.128e-05/0.3103, allocations: 0 / 0.5635 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.431e-06/0.3103, allocations: 0 / 0.5635 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.3105, allocations: 55.95 kB / 0.5635 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.3105, allocations: 4 kB / 0.5635 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.357e-05/0.3105, allocations: 0 / 0.5635 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.3106, allocations: 47.67 kB / 0.5636 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3106, allocations: 3.938 kB / 0.5636 GB, free: 3.398 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3106, allocations: 0 / 0.5636 GB, free: 3.398 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.3106, allocations: 0 / 0.5636 GB, free: 3.398 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.0004892/0.3111, allocations: 270.6 kB / 0.5638 GB, free: 3.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.3112, allocations: 12.03 kB / 0.5638 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.325e-05/0.3112, allocations: 0.9375 kB / 0.5638 GB, free: 3.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.3113, allocations: 114.5 kB / 0.5639 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.3113, allocations: 384 / 0.5639 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.3113, allocations: 4.375 kB / 0.5639 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.379e-05/0.3114, allocations: 26.27 kB / 0.564 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.3114, allocations: 192 / 0.564 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.3114, allocations: 3.938 kB / 0.564 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3114, allocations: 3.938 kB / 0.564 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.725e-05/0.3114, allocations: 4 kB / 0.564 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002186/0.3117, allocations: 124.7 kB / 0.5641 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.109e-05/0.3117, allocations: 30.55 kB / 0.5641 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.671e-05/0.3117, allocations: 4.859 kB / 0.5641 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-06/0.3117, allocations: 0 / 0.5641 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.187e-05/0.3118, allocations: 56.27 kB / 0.5642 GB, free: 2.625 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3118, allocations: 0 / 0.5642 GB, free: 2.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001934/0.312, allocations: 71.33 kB / 0.5643 GB, free: 2.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.3121, allocations: 85.23 kB / 0.5643 GB, free: 2.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.458e-05/0.3121, allocations: 97.81 kB / 0.5644 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.3121, allocations: 25.7 kB / 0.5645 GB, free: 2.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.755e-05/0.3122, allocations: 80.14 kB / 0.5645 GB, free: 2.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.3122, allocations: 0 / 0.5645 GB, free: 2.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.3122, allocations: 13.72 kB / 0.5645 GB, free: 2.203 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3124, allocations: 310.8 kB / 0.5648 GB, free: 1.891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.3124, allocations: 3.938 kB / 0.5648 GB, free: 1.887 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.546e-06/0.3124, allocations: 4 kB / 0.5648 GB, free: 1.883 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.804e-05/0.3125, allocations: 68.25 kB / 0.5649 GB, free: 1.801 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3125, allocations: 0 / 0.5649 GB, free: 1.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.009e-05/0.3125, allocations: 63.34 kB / 0.565 GB, free: 1.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.3126, allocations: 32.2 kB / 0.565 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.3126, allocations: 0 / 0.565 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.3126, allocations: 3.938 kB / 0.565 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.3126, allocations: 4 kB / 0.565 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.3126, allocations: 0 / 0.565 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.659e-05/0.3126, allocations: 8.078 kB / 0.565 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.3126, allocations: 0 / 0.565 GB, free: 1.676 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.558e-05/0.3127, allocations: 136.4 kB / 0.5651 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-06/0.3127, allocations: 0 / 0.5651 GB, free: 1.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.508e-05/0.3127, allocations: 10.94 kB / 0.5652 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3127, allocations: 0 / 0.5652 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3127, allocations: 0 / 0.5652 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3127, allocations: 0 / 0.5652 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.3129, allocations: 120.8 kB / 0.5653 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3129, allocations: 0 / 0.5653 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.3129, allocations: 4 kB / 0.5653 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3129, allocations: 0 / 0.5653 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.3129, allocations: 3.938 kB / 0.5653 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3129, allocations: 0 / 0.5653 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3129, allocations: 4 kB / 0.5653 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001099/0.313, allocations: 94.75 kB / 0.5654 GB, free: 1.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-06/0.313, allocations: 7.938 kB / 0.5654 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.102e-05/0.313, allocations: 7.969 kB / 0.5654 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-06/0.313, allocations: 0 / 0.5654 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.313, allocations: 0 / 0.5654 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.313, allocations: 4 kB / 0.5654 GB, free: 1.207 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.3131, allocations: 75.28 kB / 0.5655 GB, free: 1.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3131, allocations: 4 kB / 0.5655 GB, free: 1.129 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002281/0.3133, allocations: 23.92 kB / 0.5655 GB, free: 1.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.00045/0.3137, allocations: 183.7 kB / 0.5657 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.846e-05/0.3138, allocations: 55.41 kB / 0.5657 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3138, allocations: 4.062 kB / 0.5657 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.228e-05/0.3139, allocations: 59.34 kB / 0.5658 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.314, allocations: 4 kB / 0.5658 GB, free: 0.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002081/0.3142, allocations: 110.7 kB / 0.5659 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3145, allocations: 0.6729 MB / 0.5665 GB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.144e-05/0.3146, allocations: 7.438 kB / 0.5666 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3146, allocations: 0 / 0.5666 GB, free: 15.95 MB / 414.1 MB Notification: Performance of Templates: time 0.002593/0.3172, allocations: 0.7463 MB / 0.5673 GB, free: 15.2 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 7.163755506044254]